Skip to content

fix(ocap-kernel): stop the kernel on a store fault while a vat starts - #1329

Draft
sirtimid wants to merge 3 commits into
mainfrom
sirtimid/vat-start-store-fault
Draft

sirtimid wants to merge 3 commits into
mainfrom
sirtimid/vat-start-store-fault

Conversation

@sirtimid

@sirtimid sirtimid commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

A store fault, such as a full disk, is the kernel's own failure. When it happened while a vat's worker was starting, the kernel blamed the vat and terminated it, on a restart and at boot alike.

It now stops the kernel and keeps the vat. A restart or a launch rolls back, and at boot Kernel.make rejects. The same goes for a store fault in a delivery whose vat lost its channel meanwhile, which used to be taken for the loss.

Tested with a real store and run loop for a restart: the kernel stops, and the vat and its restart request are still there. Boot is tested with mocks only.

Closes #1291

🤖 Generated with Claude Code

sirtimid and others added 3 commits November 24, 2026 19:00
A store fault in a restart's relaunch rolls the restart back and kills the
run loop, and one at boot fails Kernel.make, instead of terminating the vat.
The vat store's faults are marked as the kernel store's are, and a delivery
whose vat lost its channel no longer takes a store fault for the loss.

Refs #1291

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A start that timed out while its worker was being stopped dropped the
fault and terminated the vat.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 75.63%
⬆️ +0.02%
11242 / 14864
🔵 Statements 75.36%
⬆️ +0.01%
11407 / 15135
🔵 Functions 74.74%
⬆️ +0.03%
2661 / 3560
🔵 Branches 71.78%
⬆️ +0.02%
4954 / 6901
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/ocap-kernel/src/KernelQueue.ts 99.06%
🟰 ±0%
94.67%
🟰 ±0%
98.18%
🟰 ±0%
99.37%
🟰 ±0%
260, 422, 1229
packages/ocap-kernel/src/KernelRouter.ts 96.01%
🟰 ±0%
88.69%
⬆️ +0.10%
100%
🟰 ±0%
96.01%
🟰 ±0%
196, 259, 276, 378, 433, 540, 565, 568
packages/ocap-kernel/src/store/index.ts 98.76%
🟰 ±0%
94.73%
🟰 ±0%
100%
🟰 ±0%
98.75%
🟰 ±0%
392
packages/ocap-kernel/src/store/utils/store-fault.ts 100%
🟰 ±0%
90.9%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
packages/ocap-kernel/src/vats/VatManager.ts 96.56%
⬆️ +0.07%
98.59%
⬆️ +0.04%
86.15%
🟰 ±0%
96.85%
⬆️ +0.07%
265-268, 337-340, 370-373, 386-389, 399-402, 443, 449-452, 459-462, 516-519, 711
Generated in workflow #5913 for commit 2f05459 by the Vitest Coverage Report Action

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A store fault while a vat starts is blamed on the vat

1 participant