2 Commits
Author SHA1 Message Date
Claude bacb7b0616 logs: the developer protocol on be456d44 -- PASS, all eight stages
Build / Image PC (push) Successful in 8m18s
Build / Image MILKV (push) Successful in 8m20s
Build / v4 tests (32- and 64-bit cells) (push) Successful in 20m22s
Acceptance / Acceptance (pull_request) Successful in 34m10s
Build / Image RASPI (push) Successful in 8m11s
#190 (POST regenerated, 539 cases) and #16 (v4-checks nightly). POST
539/539 on the four boots, at the new floor; word_count 320 and dict_hash
0xcac4cf58ed493172 on all three architectures; test-32 39 programs 0
failures; proofs; images; documents, the dictionary covering all 320
live words. logs/20261113-031936/PROTOCOL.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
2026-11-13 03:48:51 +00:00
Claude be456d44e9 fix(v4): #190 POST regenerates the same; #16 sanitizers and hosted-check nightly
Captain Bob, 2026-11-13: "Create the issues then fix them before the long
acceptance test runs"; #16: "Nightly".

#190 -- make -C v4 post79 did not reproduce POST:
- mkpost.py runs v3 with address randomisation off (setarch -R): its
  printed addresses (>IN, FIND) are the same each run, so POST79.md is.
- v4/Makefile post79 builds hosted v3 from this tree's source first and
  uses it, not the lfs/ copy, which can be older.
- post_cases.c and POST79.md regenerated: 539 cases -- LOAD.rest_of_line,
  which v3 gets through since it changed after 2026-10-07. Two runs the
  same. POST_FLOOR 538 -> 539 (#173).
- test_host_unit.c takes the table's count, not 538 typed in the test.

#16 -- scripts/nightly.sh v4-checks: make -C v4 sanitize hosted-check,
logged under logs/<TS>/v4-checks/, refused without qemu-user; nightly.yml
runs it after publishing, before the proofs, installing qemu-user if the
image lacks it.

Evidence (logs/20261113-014927/post79, -024314): before, regenerated with
nothing changed: 539 cases and addresses differing run to run; after: the
same twice, hosted POST 539/539; test, test-32 99 programs 0 failures;
v4-checks 79 programs under the sanitizers 0 failures, the hosted builds
alike. The first verification failed at test_host_unit.c:442 (kept); a
stray v4-checks run stopped at once is kept, labelled (-014453).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
2026-11-13 03:19:24 +00:00
40 changed files with 510 additions and 320 deletions
+12 -2
View File
@@ -1,8 +1,9 @@
# Nightly snapshot of the kernel images: the acceptance protocol, the board images, Nexus, then
# the proofs. Each stage is a step of scripts/nightly.sh (its header says what each does); any
# v4 under the sanitizers with the hosted builds (#16), and the proofs. Each stage is a step of scripts/nightly.sh (its header says what each does); any
# failure stops the run, and nothing is published unless every stage before it passed. The proofs
# come last and run whatever happened before them: they check the theories, not the images, so a
# failed proof does not hold back images that passed acceptance -- it turns the run red.
# failed proof does not hold back images that passed acceptance -- it turns the run red. The v4
# checks (#16; Captain Bob, 2026-11-13: "Nightly") are the same: the engine on the host, not the images.
#
# org.starship:kernelImage:<LITHOS_VERSION>-SNAPSHOT, starshipos-snapshots
# classifier pc StarshipOS.iso amd64, UEFI -- the ISO the amd64 acceptance boot booted
@@ -80,6 +81,15 @@ jobs:
name: kernel-images-${{ github.run_number }}
path: build/nightly/
- name: v4 under the sanitizers, and the hosted builds alike
if: always()
run: | # hosted-check runs aarch64 and riscv64 under qemu-user (#16)
if ! command -v qemu-aarch64 >/dev/null || ! command -v qemu-riscv64 >/dev/null; then
S=$([ "$(id -u)" = 0 ] || echo sudo)
$S apt-get update -qq && $S env DEBIAN_FRONTEND=noninteractive apt-get install -y -qq qemu-user
fi
scripts/nightly.sh v4-checks
- name: Isabelle/HOL proofs
if: always()
run: scripts/nightly.sh proofs
+5 -5
View File
@@ -3,7 +3,7 @@
Written by `v4/tools/mkpost.py` from `v4/tools/post79_rules.py`; do not edit.
Design: `NUCLEUS.md` section 6. The cases are `v4/system/post_cases.c`.
POST runs 538 cases. 431 are v3's, with what the hosted v3 binary did as the
POST runs 539 cases. 432 are v3's, with what the hosted v3 binary did as the
expected result. This file lists every other case, and why.
## 1. Rewritten for FORTH-79 (59)
@@ -60,11 +60,11 @@ standard's and not v3's.
| `CMOVE.basic` | `HERE S" Test" DUP >R HERE 10 + SWAP CMOVE CR` | stack `317`, printed `\n` | `65 PAD C! 66 PAD 1+ C! PAD PAD 10 + 2 CMOVE PAD 10 + C@ . PAD 11 + C@ . CR` | stack `empty`, prints `65 66 \n` | v3's address unit is a byte; a v4 address unit is a cell (D-1); and the v3 case leaves a value on the return stack |
| `TYPE.basic_string` | `HERE S" Hello" DUP >R HERE SWAP CMOVE HERE R> TYPE CR` | stack `392`, printed `Hello\n` | `72 PAD C! 105 PAD 1+ C! PAD 2 TYPE CR` | stack `empty`, prints `Hi\n` | v3's address unit is a byte; a v4 address unit is a cell (D-1); and FORTH-79: >R R> R@ are for use inside a definition; v4 refuses them at the prompt |
| `TYPE.numbers` | `HERE S" 12345" DUP >R HERE SWAP CMOVE HERE R> TYPE CR` | stack `398`, printed `12345\n` | `49 PAD C! 50 PAD 1+ C! PAD 2 TYPE CR` | stack `empty`, prints `12\n` | v3's address unit is a byte; a v4 address unit is a cell (D-1); and FORTH-79: >R R> R@ are for use inside a definition; v4 refuses them at the prompt |
| `>IN.initial` | `>IN @ . CR` | stack `empty`, printed `657828592 \n` | unchanged | stack `empty`, prints `6 \n` | FORTH-79: >IN is the offset into the input, 6 here; v3 prints an address |
| `>IN.initial` | `>IN @ . CR` | stack `empty`, printed `7884064 \n` | unchanged | stack `empty`, prints `6 \n` | FORTH-79: >IN is the offset into the input, 6 here; v3 prints an address |
| `UPDATE.no_block` | `0 SCR ! UPDATE` | error | unchanged | stack `empty`, prints nothing | v3 raises an error FORTH-79 does not ask for |
| `SCR.after_load` | `1 LOAD SCR @ . CR` | stack `empty`, printed `` | unchanged | stack `empty`, prints `1 \n` | v3 prints nothing after 1 LOAD; SCR is still 1 from the LIST before |
| `FIND.existing` | `FIND DUP . CR` | stack `empty`, printed `657827952 \n` | unchanged | 0 value(s) left; output not compared | FORTH-79: FIND takes the next word, DUP here, and leaves its address, which is printed |
| `FIND.user_word` | `: test5 44 ; FIND test5 . CR` | stack `empty`, printed `658154448 \n` | unchanged | 0 value(s) left; output not compared | the address FIND leaves is printed |
| `SCR.after_load` | `1 LOAD SCR @ . CR` | stack `empty`, printed `1 \n` | unchanged | stack `empty`, prints `1 \n` | v3 prints nothing after 1 LOAD; SCR is still 1 from the LIST before |
| `FIND.existing` | `FIND DUP . CR` | stack `empty`, printed `7883424 \n` | unchanged | 0 value(s) left; output not compared | FORTH-79: FIND takes the next word, DUP here, and leaves its address, which is printed |
| `FIND.user_word` | `: test5 44 ; FIND test5 . CR` | stack `empty`, printed `8203888 \n` | unchanged | 0 value(s) left; output not compared | the address FIND leaves is printed |
| `FIND.empty` | `FIND` | error | unchanged | stack `0`, prints nothing | FORTH-79: FIND leaves 0 when there is no word; v3 raises an error |
| `VOCABULARY.cross_vocab_access` | `VOCABULARY V1 V1 DEFINITIONS : V1WORD 11 ; FORTH V1WORD . CR` | stack `empty`, printed `11 \n` | unchanged | an error | FORTH-79: a word defined in another vocabulary is not found from FORTH; v3 finds it |
| `VOCABULARY.duplicate` | `VOCABULARY TESTVOC VOCABULARY TESTVOC` | error | unchanged | stack `empty`, prints nothing | v3 raises an error FORTH-79 does not ask for: defining a name again |
@@ -0,0 +1,3 @@
# Stopped, not a result: started by mistake on 2026-11-13 by a test of v4-checks's refusal
# without qemu-user, which found qemu-user after all (/bin is /usr/bin here). Stopped by hand
# at once; the stage was then tested with a PATH holding no qemu-*.
+7
View File
@@ -0,0 +1,7 @@
# #190: make -C v4 post79
before-*: the table regenerated with nothing changed, with the committed lfs/amd64/starforth and with v3 built from source: 539 cases, LOAD.rest_of_line added (v3 changed since 2026-10-07); POST79.md's v3 addresses different each run.
after-run1/2.log: post79 after the fix (v3 built from source, run with setarch -R): post_cases.c and POST79.md the same both runs; 539 cases; hosted POST 539/539.
failed-1-*.log: the first verification after the fix: test_host_unit.c:442 wanted 538 POST cases, typed in the test; POST ran 539 of 539. The test now takes the table's own count.
after-test-test32.log: make -C v4 test test-32 after both fixes: 99 programs, 3724162 checks, 0 failures.
logs/20261113-024314/v4-checks: scripts/nightly.sh v4-checks (#16), its first real run: 79 programs under the sanitizers, 0 failures; the hosted builds alike.
logs/20261113-020030/v4-checks: the same stage on the first verification, which failed at test_host_unit.c:442 (see failed-1-*).
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
# #190, before the fix: POST79.md as mkpost.py wrote it from v3 built from source (<) against the committed one (>):
# v3's printed addresses differ. Two runs of that same binary also differed from each other: >IN.initial printed 1076337952, then 241286432.
< | `>IN.initial` | `>IN @ . CR` | stack `empty`, printed `1076337952 \n` | unchanged | stack `empty`, prints `6 \n` | FORTH-79: >IN is the offset into the input, 6 here; v3 prints an address |
> | `>IN.initial` | `>IN @ . CR` | stack `empty`, printed `657828592 \n` | unchanged | stack `empty`, prints `6 \n` | FORTH-79: >IN is the offset into the input, 6 here; v3 prints an address |
< | `FIND.existing` | `FIND DUP . CR` | stack `empty`, printed `1076337312 \n` | unchanged | 0 value(s) left; output not compared | FORTH-79: FIND takes the next word, DUP here, and leaves its address, which is printed |
< | `FIND.user_word` | `: test5 44 ; FIND test5 . CR` | stack `empty`, printed `1076657776 \n` | unchanged | 0 value(s) left; output not compared | the address FIND leaves is printed |
> | `FIND.existing` | `FIND DUP . CR` | stack `empty`, printed `657827952 \n` | unchanged | 0 value(s) left; output not compared | FORTH-79: FIND takes the next word, DUP here, and leaves its address, which is printed |
> | `FIND.user_word` | `: test5 44 ; FIND test5 . CR` | stack `empty`, printed `658154448 \n` | unchanged | 0 value(s) left; output not compared | the address FIND leaves is printed |
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
# The first real run of scripts/nightly.sh v4-checks (#16), on the first verification of #190: it
# stopped at test_host_unit.c:442 (538 typed in the test; POST ran 539). Kept as evidence.
+63
View File
@@ -0,0 +1,63 @@
# Protocol for be456d44
- Commit: be456d44e9078ab4b015b9d61020adbf54c7b296
- Tree: clean
- Result: PASS
`scripts/nightly.sh protocol` (#135), begun 20261113-031936 UTC; `fix(v4): #190 POST regenerates the same; #16 sanitizers and hosted-check nightly`.
## Stages
| Stage | Result | Output |
|---|---|---|
| `accept-amd64` | PASS | `logs/20261113-031936/protocol/accept-amd64.log` |
| `accept-aarch64` | PASS | `logs/20261113-031936/protocol/accept-aarch64.log` |
| `accept-riscv64` | PASS | `logs/20261113-031936/protocol/accept-riscv64.log` |
| `accept-stick-high` | PASS | `logs/20261113-031936/protocol/accept-stick-high.log` |
| `test-32` | PASS | `logs/20261113-031936/protocol/test-32.log` |
| `proofs` | PASS | `logs/20261113-031936/protocol/proofs.log` |
| `images` | PASS | `logs/20261113-031936/protocol/images.log` |
| `docs` | PASS | `logs/20261113-031936/protocol/docs.log` |
## The boots
| Boot | Serial log | POST | System |
|---|---|---|---|
| amd64 | `logs/20261113-032011/amd64/qemu-amd64-20261113-032011.log` | `PARITY:V4_POST tests=539 pass=539 fail=0` | `PARITY:V4_SYSTEM word_count=320 dict_hash=0xcac4cf58ed493172` |
| aarch64 | `logs/20261113-032214/aarch64/qemu-aarch64-20261113-032214.log` | `PARITY:V4_POST tests=539 pass=539 fail=0` | `PARITY:V4_SYSTEM word_count=320 dict_hash=0xcac4cf58ed493172` |
| riscv64 | `logs/20261113-032542/riscv64/qemu-riscv64-20261113-032542.log` | `PARITY:V4_POST tests=539 pass=539 fail=0` | `PARITY:V4_SYSTEM word_count=320 dict_hash=0xcac4cf58ed493172` |
| stick-high | `logs/20261113-032718/amd64/qemu-amd64-20261113-032718.log` | `PARITY:V4_POST tests=539 pass=539 fail=0` | `PARITY:V4_SYSTEM word_count=320 dict_hash=0xcac4cf58ed493172` |
dict_hash: the same on all three: `0xcac4cf58ed493172`.
## test-32
39 programs, 1861036 checks, 0 failures
## The proofs
`logs/20261113-033321/isabelle/isabelle-20261113-033321.log`
## The images (SHA-256)
```
37a50e4b12af64894829605d8f56ba0e2c134157f6e14b3e9a3262c30de5bb6e StarshipOS.iso
5e8028bd0131d20a475dd5566f3c31d6982fb8613a34ce9ccc565d835e285172 pc-stick.img
250eee1bc9b497e616581bdd12c85fa6cc981475321ce2764f200d8dd391feb2 raspi5.img
a3cb6d2676a0d261aa4b42f3b9a087310b379251deeee179e77d5cc24b2ba3d0 MilkV.img
ee752c06d1729a3249facb4d5461f58e6fa020d9444ce2b20bb2d75ae48eeeba pc-stick.img.xz
599c2bb8322cbe81041896b0e04b09011027229d1f65e645aaeb2b1bea546152 raspi5.img.xz
72c735aec72e8eb0095297a5b3e0c9121f39996648c3f2433285cb619efaa12c MilkV.img.xz
```
## The documents (SHA-256)
```
297f4898570cf296682de1eb1274f7e4d1dc50b7973f0f78e08cc01c42b3eae5 ./api.pdf
4cba4d7592bc6d8c43c88edaca3c074f23ca0922e8544230d442a50e3a91c7e8 ./book.pdf
906ebede32171c0a2a284116a0f5cef1c151daa23504004b6e9482eac9d41e95 ./dictionary.pdf
327ff58012623994bc5b8851bb445b606bf1d916d2cbb88581e1dd9580aa8102 ./fabric.pdf
802ef6585eecafdc38931c11c17fffaa4b3bf6c8e166d01948080a8e44a326e7 ./vol1.pdf
9db14113c9b7265035d780ae6b6d7c311364f7bb235b4257d2c062a712ef65d9 ./vol2.pdf
7bcff53144a7e90ba7fa87a8e6ceec6fc409075c08f1a26b2d4ec34b70028226 ./vol3.pdf
```
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More