v4 init.4th pins the words that create or end nodes
Captain Bob ruled: "Also pin the kernel words". After the policy loads, init.4th pins 11 words: BIRTH, BIRTH-AS, UNIT, KILL, UNIT-KILL, PAUSE, RESUME, NODE-BORN, NODE-KILL, NODE-SLEEP and NODE-WAKE. Their fields cannot be changed, so no policy can deny them. v4 has no CAPSULE-BIRTH. The wiring words, NODE-WIRE and NODE-UNWIRE, are not pinned; they neither create nor end a node. Test first in test_mesh_boot: each of the 11 is pinned. The before-run had all 11 unpinned. After: 114 checks pass, POST 990/990. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
@@ -152,6 +152,18 @@ int main(void)
|
||||
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);
|
||||
{ /* the words that create or end nodes, pinned by init.4th (ruled 2026-11-19: "Also pin the kernel words") */
|
||||
static const char *const pinned[] = { "BIRTH", "BIRTH-AS", "UNIT", "KILL", "UNIT-KILL", "PAUSE", "RESUME",
|
||||
"NODE-BORN", "NODE-KILL", "NODE-SLEEP", "NODE-WAKE" };
|
||||
unsigned k, all = 1;
|
||||
char q[64];
|
||||
for (k = 0; k < sizeof pinned / sizeof pinned[0]; k++) {
|
||||
snprintf(q, sizeof q, "' %s ACL-PINNED? .", pinned[k]);
|
||||
r = line(V4_MESH_HERA, q, &how);
|
||||
if (how != V4_TEXT_COMPLETED || strcmp(r, "-1 ") != 0) { all = 0; printf(" not pinned: %s: \"%s\"\n", pinned[k], r); }
|
||||
}
|
||||
CHECK(all, "init.4th pinned the %u words that create or end nodes", (unsigned)(sizeof pinned / sizeof pinned[0]));
|
||||
}
|
||||
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) */
|
||||
|
||||
Reference in New Issue
Block a user