v4 init.4th, steps 1 and 2: the ACL policy loaded after POST, then the search order

Captain Bob ruled "ACL at boot", loaded "From init.4th", the include
"Compose[d] in FORTH".
- capsules/v4/init.4th, at block 3980: S" v4:ACL.4th" CAPSULE-INCLUDE,
  then STARSHIPOS.
- capsules/v4/ACL.4th is the policy, git mv'ed from v4/capsule/ACL.fth
  and reflowed into chained 64x16 blocks, its text unchanged.
- CAPSULE-INCLUDE in centre.4th places a capsule and LOADs its lowest
  block. It is composed from CAPSULE-OPEN and CAPSULE-LINE, with no new
  C word.
- The mesh loads v4:init.4th after POST and COLD, its one fixed step
  there.

Test first in test_mesh_boot: the parity line, DOE without naming
STARSHIPOS, and ACL-BOOT pinned. The before-run failed.

After: 113 checks pass and POST is 990/990. All 52 tests, test-32 and
ASan/UBSan pass. The dictionary has 405 words. One amd64 session passes
18/18 with "ACL: active".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
Claude
2026-11-19 11:57:42 +00:00
parent fdf9c1946c
commit b13d452e66
17 changed files with 975 additions and 59 deletions
+34
View File
@@ -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`.