v4: COLD keeps the vocabularies as sealed -- FORGET's prune, shared
COLD set VOC-LINK to 0, assuming the sealed system has one vocabulary. With starshipos.4th sealed in, STARSHIPOS fell out of the chain after COLD. A word defined in it then forgotten, or COLDed away, hung the node. ACL-INIT-PRIMITIVES would also have skipped its words. FORGET's loop is now (PRUNE-ALL). It drops the vocabularies above (Q) and prunes the lists of those that stay. FORGET calls it as before, and COLD calls it with the sealed DP. No new cell and no new word. Test first in test_mesh_boot.c: FORGET and COLD of a word in STARSHIPOS, and STARSHIPOS's own words staying. The before-run hung and was stopped at 500 s. After: 109 checks pass, POST is 990/990, all 52 64-bit tests and test-32 pass, ASan/UBSan are clean, and the amd64 build is clean. Found by Captain Bob's "make sure we're not applying incorrect logic". Ruled: fix first, then the protocol. Logs are in logs/20261118-cold-vocabularies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
@@ -146,6 +146,16 @@ int main(void)
|
||||
/* starshipos.4th, a system capsule loaded before POST (MACHINE.md 3, step 3; ruled 2026-11-18) */
|
||||
r = line(V4_MESH_HERA, "STARSHIPOS S\" ok\" DOE", &how); /* COLD leaves FORTH alone in the search; init.4th will set it */
|
||||
CHECK(how == V4_TEXT_COMPLETED && strcmp(r, "ok") == 0, "starshipos.4th is loaded: in STARSHIPOS, DOE types its name: \"%s\" (%d)", r, how);
|
||||
/* a vocabulary sealed into the system (STARSHIPOS) stays in the chain after COLD: FORGET and COLD prune its list */
|
||||
r = line(V4_MESH_HERA, "STARSHIPOS DEFINITIONS : ZZ 7 ; FORTH DEFINITIONS STARSHIPOS FORGET ZZ", &how);
|
||||
CHECK(how == V4_TEXT_COMPLETED, "a word defined in STARSHIPOS is forgotten: \"%s\" (%d)", r, how);
|
||||
r = line(V4_MESH_HERA, "STARSHIPOS ZZ", &how);
|
||||
CHECK(how == V4_TEXT_ERROR && strstr(r, "UNKNOWN WORD") != 0, " and is gone from STARSHIPOS's list: \"%s\" (%d)", r, how);
|
||||
r = line(V4_MESH_HERA, "STARSHIPOS DEFINITIONS : YY 8 ; FORTH DEFINITIONS COLD", &how);
|
||||
r = line(V4_MESH_HERA, "STARSHIPOS YY", &how);
|
||||
CHECK(how == V4_TEXT_ERROR && strstr(r, "UNKNOWN WORD") != 0, "COLD takes a word defined in STARSHIPOS off its list: \"%s\" (%d)", r, how);
|
||||
r = line(V4_MESH_HERA, "STARSHIPOS S\" ok\" DOE", &how);
|
||||
CHECK(how == V4_TEXT_COMPLETED && strcmp(r, "ok") == 0, " and STARSHIPOS's own words stay: \"%s\" (%d)", r, how);
|
||||
r = line(V4_MESH_HERA, "NODE-ME .", &how);
|
||||
CHECK(how == V4_TEXT_COMPLETED && strcmp(r, "0 ") == 0, "NODE-ME: Hera is at place 0: \"%s\"", r);
|
||||
r = line(V4_MESH_HERA, "NOSUCH", &how);
|
||||
|
||||
Reference in New Issue
Block a user