feat(kernel): Wave 9 mega-phase — bits9, protocol 0.5, boot policy v9, Pear/Bare bridge

- Add ninth capability word (bits9), STOCK_V9, FEATURE9_*; bump feature bits doc to 11
- Extend seed RPCs, channel wiring, replication/staging adjuncts; bare_os_proc_index schema 5
- Wave 9 /proc JSON via bare-os-wave9-proc.js + VFS aliases; ctx API 1.18.0 + d.ts hooks
- Boot policy v9 + kernel/init.js enforcement; extensions registry schema 6; strict bits9 caps
- NDJSON lifecycle 8, OTel 6, audit 6; SOCKS proxy map, worker/WASM/env passthrough
- Coreutils openssl stub (bare-crypto doc); mediaproc:* worker group; http-fetch SOCKS lookup
- CI: verify-kernel-roadmap-wave9.mjs, wave3/ctx/dts/compat updates; pretest chain
- Docs: roadmap Wave 9 table, ADR §12, kernel-extensions/capabilities/matrix/protocol/handbook/
  developer-guide (node-to-bare-modules, privacy), kernel README, scripts README, changelogs
- Sync packages/bare-os-seeder/kernel (init.js, README); refresh booter /proc readdir test list
This commit is contained in:
Raven Scott
2026-04-04 05:54:08 -04:00
parent c01ecb29c3
commit fccd07b726
56 changed files with 2362 additions and 452 deletions
+10 -4
View File
@@ -23,13 +23,13 @@ Exits **0** only when **`kernel/`** and **`packages/bare-os-seeder/kernel/`** co
**Usage:** `node scripts/verify-ctx-api-feature-bits.mjs`
Checks that **`packages/bare-os-booter/lib/bare-os-ctx-api.js`** documents a **`BARE_OS_CTX_API_VERSION`** that matches the contract surface (semver discipline) and that stock kernel feature words (**`STOCK_V1`** … **`STOCK_V7`**) in **`bare-os-protocol`** stay referenced from the booter (including **`bits3`** … **`bits7`** on the seed handshake). Invoked from the root **`pretest`** hook.
Checks that **`packages/bare-os-booter/lib/bare-os-ctx-api.js`** documents a **`BARE_OS_CTX_API_VERSION`** that matches the contract surface (semver discipline) and that stock kernel feature words (**`STOCK_V1`** … **`STOCK_V9`**) in **`bare-os-protocol`** stay referenced from the booter (including **`bits3`** … **`bits9`** on the seed handshake). Invoked from the root **`pretest`** hook.
## `verify-kernel-roadmap-wave3.mjs`
**Usage:** `node scripts/verify-kernel-roadmap-wave3.mjs`
Static checks for roadmap wave-4…7 plumbing: **`STOCK_V4`** … **`STOCK_V7`**, **`bits4`** … **`bits7`** in seed **`capabilities`**, booter **`loadOsFromOfflineLkg`**, strict checks, boot policy schema (through **`requireFeatureBits7`**, **`requirePearRuntimeMin`**, **`requireProtocolPackageMin`**, …), kernel **`init.js`** enforcement, and **`seed-rpc-methods.js`** + **`channel.js`** wiring. Root **`pretest`**.
Static checks for roadmap wave-4…9 plumbing: **`STOCK_V4`** … **`STOCK_V9`**, **`bits4`** … **`bits9`** in seed **`capabilities`**, booter **`loadOsFromOfflineLkg`**, strict checks, boot policy schema (through **`requireFeatureBits9`**, **`requirePearRuntimeRange`**, …), kernel **`init.js`** enforcement, and **`seed-rpc-methods.js`** + **`channel.js`** wiring. Root **`pretest`**.
## `verify-kernel-roadmap-wave6.mjs`
@@ -49,6 +49,12 @@ Asserts **`feature-roadmap.md`** contains a **`## Wave 7`** section with at leas
Asserts **`feature-roadmap.md`** contains a **`## Wave 8`** section with at least **100** numbered table rows. Root **`pretest`**.
## `verify-kernel-roadmap-wave9.mjs`
**Usage:** `node scripts/verify-kernel-roadmap-wave9.mjs`
Asserts **`feature-roadmap.md`** contains a **`## Wave 9`** section with at least **100** numbered table rows. Root **`pretest`**.
## `verify-pear-no-static-node-import.mjs`
**Usage:** `node scripts/verify-pear-no-static-node-import.mjs`
@@ -59,7 +65,7 @@ Fails on **`from 'node:…'`** static imports under **`packages/bare-os-booter/i
**Usage:** `node scripts/verify-ctx-dts.mjs`
Ensures **`bare-os-ctx.d.ts`** lists new **`ctx`** fields (**`bareOsAdvertisedKernelBits4`****`bits8`**, Bare runtime semver, protocol/Pear runtime semver, subprocess snapshot, profile reload, delegate fairness, IPC audit, Pear / bundlebee / diagnostics / hrpc / structured-clone stubs, …) that exist in **`packages/bare-os-booter/index.js`**. Root **`pretest`**.
Ensures **`bare-os-ctx.d.ts`** lists new **`ctx`** fields (**`bareOsAdvertisedKernelBits4`****`bits9`**, Bare runtime semver, protocol/Pear runtime semver, subprocess snapshot, profile reload, delegate fairness, IPC audit, Pear / bundlebee / diagnostics / hrpc / structured-clone / wave9 stubs, …) that exist in **`packages/bare-os-booter/index.js`**. Root **`pretest`**.
## `verify-doc-links.mjs`
@@ -77,7 +83,7 @@ Asserts every Tier-1 name in **`packages/bare-os-coreutils/lib/commands.mjs`** h
**Usage:** `node scripts/verify-compat-matrix.mjs`
Checks **[`docs/reference/compatibility-matrix.md`](../docs/reference/compatibility-matrix.md)** lists the current **`BARE_OS_CTX_API_VERSION`**, **`BARE_OS_KERNEL_FEATURE_BITS_DOC`**, **`BARE_OS_LIFECYCLE_SCHEMA_VERSION`**, and mentions **`bits5`**, **`bits6`**, and **`bits7`**. Root **`pretest`**.
Checks **[`docs/reference/compatibility-matrix.md`](../docs/reference/compatibility-matrix.md)** lists the current **`BARE_OS_CTX_API_VERSION`**, **`BARE_OS_KERNEL_FEATURE_BITS_DOC`**, **`BARE_OS_LIFECYCLE_SCHEMA_VERSION`**, and mentions **`bits5`** **`bits9`**. Root **`pretest`**.
## `validate-example-schemas.mjs`