alpha.5: capsule trust (#139); CI uploads (#184); block reads refused (#187); POST.md steady (#199); Downloads and Documents (#191); the demo's transcripts (#192) #201

Merged
rajames merged 14 commits from StarForth-v4.0.0 into master 2026-11-24 13:46:10 +00:00
Owner

What and why

The alpha.5 shoulds, one at a time, on StarForth-v4.0.0 since #200:

  • #139, capsule trust. A signed kernel refuses an unsigned capsule at boot. capsule_sig_refused() is the one decision: INVALID is always refused; MISSING and NO_ROOT_KEY are refused on a signed build (CAPSULE_SIGNED_BUILD, set exactly when the build signs) and warned of otherwise. Ruled: the intermediate built into the image is the anchor, with no root check; the refused-capsule boot is CI's (scripts/nightly.sh capsule-trust, in nightly.yml). Plan 2026-11-20-capsule-trust.md, FABRIC-3 §XLIX; the plan also records what was given for ADR step 4 (capsules as trains, each blob signed and hashed).
  • #184, CI. Each workflow uploads only what the run wrote (nightly.sh run-logs), and a failed upload is a warning, not a red run.
  • #187, the block layer. A disk header that cannot be read is refused ("not attached"), not formatted as blank; a failed read invalidates its cache slot; a failed writeback is not dropped on eviction. v4/tests/test_host_blocks.c injects the failures.
  • #199, POST.md. The table and its documents come out the same run to run: the varying cells say "varies run to run", and ENTROPY!.overwrite is pinned to 20.
  • #191, Downloads and Documents. Every document and the nightly's images on the .com (two pages, as the canvas), never the patent (scripts/check_no_patent.sh, in the docs, release and publish stages). POST's count and LithosAnanke's version come from the tree at build. Nexus reads snapshots anonymously.
  • #192, the demo's transcripts. Ruled "Write-only drop box": each session's transcript, mode 0600, in a directory a session can add to but not list; a root timer hands each to the owner and deletes those over 7 days. The banner and the Try it page say a transcript is kept for up to 7 days ("Machine not kept; log 7 days").

Each was test first, seen to fail. The branch has master merged in (#198's and #200's merges, no change to any file).

Closes #139, closes #184, closes #187, closes #199

#191 and #192 stay open for the server: #191 for an anonymous fetch from outside and the pages going live with the next release; #192 for demo/DEPLOY.md step 4 and its check.

Acceptance

  • logs/20261124-114653/PROTOCOL.md for the head: PASS, all eight stages, on 2783edbf. The head is that tree plus its evidence; scripts/check_protocol.sh accepts it.
    • POST 992/992 on all four boots; dict_hash=0x7c5a2f0c02145e63 (407 words) on amd64, aarch64 and riscv64.
  • Logs from other runs made by hand are committed in logs/: 20261120-capsule-trust, 20261120-ci-uploads, 20261120-blocks (with an unsigned developer boot, 20261120-225815, warning and booting), 20261121-post199, 20261121-downloads, 20261121-demo-transcripts.
  • Hardware this was tried on: none. Board bring-up is deferred until the lost hardware is replaced (Captain Bob, 2026-11-20).
  • Not covered here: the signed build refusing an unsigned capsule is CI's boot (capsule-trust), first seen in the nightly after the merge.

The record

  • docs/fabric/FABRIC-3.md has #139's ruling (§XLIX). The other rulings are in their issues and plans.
  • CHANGELOG.md: not a milestone.
  • Nothing in this PR is a fix nobody asked for: each issue's fix was ruled one at a time.

🤖 Generated with Claude Code

https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm

## What and why The alpha.5 shoulds, one at a time, on `StarForth-v4.0.0` since #200: - **#139, capsule trust.** A signed kernel refuses an unsigned capsule at boot. `capsule_sig_refused()` is the one decision: INVALID is always refused; MISSING and NO_ROOT_KEY are refused on a signed build (`CAPSULE_SIGNED_BUILD`, set exactly when the build signs) and warned of otherwise. Ruled: the intermediate built into the image is the anchor, with no root check; the refused-capsule boot is CI's (`scripts/nightly.sh capsule-trust`, in `nightly.yml`). Plan `2026-11-20-capsule-trust.md`, FABRIC-3 §XLIX; the plan also records what was given for ADR step 4 (capsules as trains, each blob signed and hashed). - **#184, CI.** Each workflow uploads only what the run wrote (`nightly.sh run-logs`), and a failed upload is a warning, not a red run. - **#187, the block layer.** A disk header that cannot be read is refused ("not attached"), not formatted as blank; a failed read invalidates its cache slot; a failed writeback is not dropped on eviction. `v4/tests/test_host_blocks.c` injects the failures. - **#199, POST.md.** The table and its documents come out the same run to run: the varying cells say "varies run to run", and `ENTROPY!.overwrite` is pinned to 20. - **#191, Downloads and Documents.** Every document and the nightly's images on the .com (two pages, as the canvas), never the patent (`scripts/check_no_patent.sh`, in the docs, release and publish stages). POST's count and LithosAnanke's version come from the tree at build. Nexus reads snapshots anonymously. - **#192, the demo's transcripts.** Ruled "Write-only drop box": each session's transcript, mode 0600, in a directory a session can add to but not list; a root timer hands each to the owner and deletes those over 7 days. The banner and the Try it page say a transcript is kept for up to 7 days ("Machine not kept; log 7 days"). Each was test first, seen to fail. The branch has `master` merged in (#198's and #200's merges, no change to any file). Closes #139, closes #184, closes #187, closes #199 #191 and #192 stay open for the server: #191 for an anonymous fetch from outside and the pages going live with the next release; #192 for `demo/DEPLOY.md` step 4 and its check. ## Acceptance - [x] `logs/20261124-114653/PROTOCOL.md` for the head: PASS, all eight stages, on 2783edbf. The head is that tree plus its evidence; `scripts/check_protocol.sh` accepts it. - POST 992/992 on all four boots; `dict_hash=0x7c5a2f0c02145e63` (407 words) on amd64, aarch64 and riscv64. - [x] Logs from other runs made by hand are committed in `logs/`: `20261120-capsule-trust`, `20261120-ci-uploads`, `20261120-blocks` (with an unsigned developer boot, `20261120-225815`, warning and booting), `20261121-post199`, `20261121-downloads`, `20261121-demo-transcripts`. - [ ] Hardware this was tried on: none. Board bring-up is deferred until the lost hardware is replaced (Captain Bob, 2026-11-20). - [ ] Not covered here: the signed build refusing an unsigned capsule is CI's boot (`capsule-trust`), first seen in the nightly after the merge. ## The record - [x] `docs/fabric/FABRIC-3.md` has #139's ruling (§XLIX). The other rulings are in their issues and plans. - [ ] `CHANGELOG.md`: not a milestone. - [x] Nothing in this PR is a fix nobody asked for: each issue's fix was ruled one at a time. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
rajames added 14 commits 2026-11-24 12:43:06 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
capsule_sig_refused(), the one decision at v4's boot and v3's three
births: INVALID always; MISSING and NO_ROOT_KEY on a signed build
(CAPSULE_SIGNED_BUILD, set exactly when the Makefiles sign). A
developer build warns and boots. test_capsule_sig, built both ways,
did not build without it; 4 checks each way now. nightly.sh
capsule-trust, a nightly step: signed, v4:centre.4th left unsigned
(test only), amd64 must refuse it -- CI's, as ruled, since only CI has
the key. No root check, as ruled; the step-4 trust model (blobs signed
by their authors, MANIFEST.md hashes, contributors' intermediates,
snakeoil) recorded as given. FABRIC-3 XLIX. Gates pass, POST 992/992.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
scripts/nightly.sh run-logs gathers the logs and DoE CSVs newer than
the run's start, and the stages' output, into build/nightly/run-logs/;
acceptance, nightly and release upload that, not every log in the
tree, with continue-on-error (Captain Bob: "A warning only").
scripts/test_nightly_run_logs.sh: 5 of 8 failed first; its own error
(nightly.sh works from the repository root) corrected with
NIGHTLY_TREE; 8 pass. To see: CI's next acceptance uploads a handful.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
A disk header that cannot be read refuses the attach (BLK_EIO, with a
message naming the disk by size); it was taken as blank and offered for
a format. A data read that fails is refused, not cached as zeros. An
eviction whose writeback fails keeps the slot and refuses the new one;
the changes were lost. test_host_blocks, a device whose reads can fail:
7 of 65 failed against the old code, 65 pass (63 at 32 bits). The
test's own errors (a detached device not reopened; two devices declared
out of the later checks' scope) corrected. ident_attach_fail on amd64:
the attach refused; its two failures left are #179's. The five write
results still thrown away are reported, not changed. Gates pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
The cells of v3's column whose value differs each run -- the three
addresses, and three values of the run's history -- are written
"varies run to run" (a varies mark on their rules). And a second
finding, in post_cases.c itself: ENTROPY!.overwrite took 20 or 0 from
v3's run, as its heartbeat cooled the word between the lines; pinned
to 20, its words' meaning (both ruled). Three runs write the same
POST.md, POST79.md and post_cases.c; post_cases.c is as committed, so
POST does not change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
v3's run printed 20 or 0 for it: its cell in POST.md is written
"varies run to run", as the other six. Its expectation stays pinned
at 20.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
The documents stage builds the SSRN paper, experiments, proofs and the
four TeX experiment reports (from their sources), and refuses the
patent (scripts/check_no_patent.sh, by name or PDF title: test failed
first, 5 cases pass); a release and the Nexus publish check again.
texlive-science added to make init's documents (siunitx). The canvas's
Documents gains the seven, Downloads a nightly section from Nexus's
latest snapshot (build.py). Built in a scratch copy: every link and
sum filled, no patent. Left: Nexus's anonymous read, on the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
Nexus splits pc-stick.img.xz as classifier pc-stick.img, extension
xz: the Downloads design's placeholders and build.py's pattern follow.
All four links resolve to the latest snapshot. On Nexus (ruled
"Snapshots only"): the anonymous user's role is now
starshipos-anonymous-snapshots, read and browse on starshipos-snapshots
alone, and anonymous access is on; releases and builds stay closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
The .com's Downloads and Try It, and the .org's at-a-glance figures,
said 538 power-on checks; POST is 992. The designs say [POST], and both
builds fill it from v4/system/POST_FLOOR (Captain Bob: "From
POST_FLOOR at build"). Rebuilt pages: only the number changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
The .org's at-a-glance figures said v2.1.0; the version is
4.0.0-alpha.5. build.py reads LITHOS_VERSION (Captain Bob: "From
kernel/Makefile at build"). The rebuilt page: only that changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
Ruled 2026-11-21, "Write-only drop box": console.py writes each session's transcript, mode 0600,
into /var/lib/starshipos-demo-transcripts (the owner's, group starshipos-demo, mode 1730: a session
adds a file but cannot list or read the directory). transcripts-tidy.sh, run as root every 5 minutes
by starshipos-demo-transcripts.timer, hands each file to the owner and deletes those over 7 days.
starshipos-demo.service gets the directory writable and DEMO_TRANSCRIPTS; DEPLOY.md step 4 has the
server steps and the check.

"Nothing you do is kept" was no longer true. Ruled 2026-11-24, "Machine not kept; log 7 days": the
session's banner, the Try it page and the old wiki page say nothing is kept on the machine and a
transcript is kept for up to 7 days, then deleted, and the page says so before the console.

demo/test_transcripts.py failed first (logs/20261121-demo-transcripts/before.txt) and passes its
10 checks (after.txt).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
logs: the protocol on 2783edbf: PASS
Build / Image RASPI (push) Successful in 3m29s
Build / Image PC (push) Successful in 3m29s
Build / Image MILKV (push) Successful in 4m23s
Build / v4 tests (32- and 64-bit cells) (push) Successful in 14m32s
Acceptance / Acceptance (pull_request) Successful in 37m47s
ab2141383c
logs/20261124-114653/PROTOCOL.md: the four boots POST 992/992, dict_hash 0x7c5a2f0c02145e63 on the
three (407 words); test-32, the proofs, the images and the documents pass. 2783edbf is the branch
with master merged in (#198's and #200's merges, no change to any file), on top of #139, #184, #187,
#191, #192 and #199.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
rajames scheduled this pull request to auto merge when all checks succeed 2026-11-24 12:49:58 +00:00
rajames merged commit 058d78d1ea into master 2026-11-24 13:46:10 +00:00
Sign in to join this conversation.