generated from erix/meta
lib-bootstrap defines shared bootstrap startup contracts for root task and early critical services.
- Rust 100%
| .github | ||
| src | ||
| tests | ||
| .editorconfig | ||
| .gitignore | ||
| ARCHITECTURE.md | ||
| Cargo.toml | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| ROADMAP.md | ||
| rustfmt.toml | ||
| SECURITY.md | ||
lib-bootstrap
lib-bootstrap defines shared bootstrap startup contracts for root task and
early critical services.
This repository provides startup envelope schemas and role constants layered on shared capability and IPC primitives.
It also defines the BootConfig payload wire contract used by rootd to drive
runtime service and driver orchestration from boot.img.
Scope
lib-bootstrap is responsible for:
- root->service startup envelope types/constants
- service role IDs and startup flag constants
BootConfigHeaderV1/BootConfigEntryV1payload contracts- boot-config launch-kind / flag / validation-profile constants
- readiness/failure status code contracts for bootstrap phase
- checked parse/encode helpers for startup messages
lib-bootstrap is not responsible for:
- launch ordering policy
- retry/backoff policy
- service lifecycle management outside startup contract
- capability policy (owned by root/service logic)
Relationship to Other Repos
- complements
lib-handoff(handoff chain structs) for the root->services phase - references capability descriptor types from
lib-capabi - may embed IPC header usage from
lib-ipc - consumed by
rootdand early service repos (memd,pagerd,procd,vspaced)
Design Constraints
- No external crates.
- Versioned, strict startup envelope validation.
- Deterministic parse/validation behavior.
- No policy in shared helpers.
Status
Implemented baseline.
Current crate includes RootServiceStartEnvelopeV1, split-role constants for
memd/vspaced/pagerd/procd, strict parse/validation helpers, optional IPC framing
integration, BootConfig parse/encode/validate helpers (including
validation_profile=none for runtime images), and fixture-based tests.
License
ISC.