feat(bare-os): kernel wave 3 — bits3, seed RPCs, policy, proc, CI schemas

Add third capability word (STOCK_V3) and word2 tail bits; seed RPCs
snapshot_hints and peer_firewall_stats; /proc mirrors (snapshot_hints,
pear_trust, rlimits, hdms_health, initd_graph) and /proc/net/udp; boot
policy v3 (requireFeatureBits2/3, Pear IPC allowlist, VFS deny prefixes,
initd restart cap); VFS enforcement for boot-policy path denies; delegate
in-flight caps; gated shell local/declare; initd path conditions, ordered
suspend/resume, OnInactiveSec timers; vfs.watch swarm/replication;
validate-example-schemas.mjs + ajv in pretest; extend verify-ctx for V3;
bump ctx API to 1.12.0; ADR 001, protocol, handbook, dev-guide, and
reference docs; seeder/kernel parity and booter tests.

Chore: Prettier table alignment in CHANGELOG and READMEs; compact
bareOsRequestPearReload signature in bare-os-ctx.d.ts.
This commit is contained in:
Raven Scott
2026-04-04 02:34:21 -04:00
parent 2919f606ce
commit de176addd9
56 changed files with 2358 additions and 1046 deletions
+7 -1
View File
@@ -23,7 +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_V2`**) in **`bare-os-protocol`** stay referenced from the booter. 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_V2`**, **`STOCK_V3`**) in **`bare-os-protocol`** stay referenced from the booter (including **`bits3`** on the seed handshake). Invoked from the root **`pretest`** hook.
## `validate-example-schemas.mjs`
**Usage:** `node scripts/validate-example-schemas.mjs`
Validates representative JSON under **`kernel/etc/bare-os/`** (e.g. **`boot.policy.example.json`**, boot-trace and telemetry samples) against **[`docs/schemas/`](../docs/schemas/)** using **Ajv** draft 2020-12. Invoked from the root **`pretest`** hook after **`verify-ctx-api-feature-bits.mjs`**.
## `stage-release.sh`