WIP: Implement counted realm provisioning and lifecycle custody #2
No reviewers
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/procd!2
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/posix-compat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary and rationale
Retain original process generations and native construction sources through realm staging, counted client factory provisioning, signals and retirement. Derive storage from authenticated target geometry and preserve unique grants and partial cleanup owners.
Tracking and scope
The linked component audit, implementation and consumer requirements remain part of this WIP review. The phase-wide guest and toolchain build requirements stay with the phase completion issue.
Architecture, authority and failure behavior
Realm storage uses the original target type geometry and explicit process, execution, invocation and readiness counts described by counted execution storage. Capacity refusal precedes native construction; spare global rows cannot expand a client's declared quota.
native factory provisioning authenticates the original Launchd caller, stopped client, realm and stage grant. It retains the actual Process SEND endpoint, exact stage grant, destination, requested rights, capacity and process intent before constructing the native factory. Metadata and native READ must agree on the original serial, process, kind and rights before publication.
The two results are the same unique stage grant and a factory with READ/WRITE/MINT/GRANT. Original source absence precedes renewed intake. Positive publication consumes its source selector; descriptive history cannot query a later slot occupant. Launchd's recipient attenuation and the narrow initial-retirement WRITE duty follow client factory custody.
Process and member retirement retain native backing, mapping and accounting obligations until their own positive terminal boundaries. Unknown construction, publication or disposal keeps original owners and blocks unsafe reuse.
Complete source and frame admission, imported libc and dynamic ELF TLS consumers, and the signed native/VM workload remain open. The full EriX guest builds and external Rust/LLVM rebuild inside EriX remain phase requirements.
Validation evidence
Formatting, strict Clippy, warning-denied builds and documentation, unit tests, and applicable native/VM and consumer regressions remain required for the declared scope. Authored controls and older successful runs do not establish current full acceptance.
Review checklist
Strict Clippy, warning-denied builds/tests and supported configurations
Unit and relevant native VM execution
Documentation rendering and performance execution
Original source implementation and inline ownership documentation
Updated independent controls and affected documentation sources
Complete declared feature scope and required execution
This review remains WIP until its declared scope and dependent requirements are complete.
WIP: Bind launch description installation to the actual staged childto WIP: Own staged mediator authority and restrict child installationWIP: Own staged mediator authority and restrict child installationto WIP: Stage mediators without child root capabilitiesWIP: Stage mediators without child root capabilitiesto WIP: Guard mediator construction and Launchd admissionerikinkinen referenced this pull request from erix/integration2026-09-21 16:55:34 +02:00
erikinkinen referenced this pull request from erix/rootd2026-09-21 19:17:00 +02:00
erikinkinen referenced this pull request from erix/docs2026-09-21 19:17:02 +02:00
WIP: Guard mediator construction and Launchd admissionto WIP: Start and retire guarded realm mediatorserikinkinen referenced this pull request from erix/launchd2026-09-24 21:10:16 +02:00
erikinkinen referenced this pull request from erix/posixd2026-09-24 21:10:21 +02:00
erikinkinen referenced this pull request from erix/posixd2026-09-24 21:35:28 +02:00
WIP: Start and retire guarded realm mediatorsto WIP: Provision private realm clients and retain final accountingerikinkinen referenced this pull request from erix/lib-ipc2026-09-29 05:42:41 +02:00
erikinkinen referenced this pull request from erix/lib-bootstrap2026-09-29 05:42:41 +02:00
erikinkinen referenced this pull request from erix/lib-posixabi2026-09-29 05:42:42 +02:00
WIP: Provision private realm clients and retain final accountingto WIP: Enforce private realm custody and counted client launcherikinkinen referenced this pull request from erix/docs2026-09-29 18:25:23 +02:00
erikinkinen referenced this pull request from erix/exsh2026-09-29 18:26:25 +02:00
erikinkinen referenced this pull request from erix/integration2026-09-29 18:27:07 +02:00
erikinkinen referenced this pull request from erix/launchd2026-09-29 18:27:27 +02:00
erikinkinen referenced this pull request from erix/loaderd2026-09-29 18:27:40 +02:00
erikinkinen referenced this pull request from erix/posixd2026-09-29 18:27:43 +02:00
erikinkinen referenced this pull request from erix/posixd2026-09-30 11:56:21 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-09-30 11:56:22 +02:00
erikinkinen referenced this pull request from erix/docs2026-09-30 11:56:33 +02:00
erikinkinen referenced this pull request from erix/integration2026-09-30 11:56:43 +02:00
erikinkinen referenced this pull request from erix/lib-posixabi2026-09-30 11:56:50 +02:00
erikinkinen referenced this pull request from erix/posixd2026-09-30 11:56:55 +02:00
WIP: Enforce private realm custody and counted client launchto WIP: Enforce realm lifecycle and signal invocation custodyWIP: Enforce realm lifecycle and signal invocation custodyto WIP: Enforce realm lifecycle and native SIGPIPE custodyerikinkinen referenced this pull request from erix/docs2026-10-02 23:37:38 +02:00
erikinkinen referenced this pull request from erix/exsh2026-10-02 23:38:09 +02:00
erikinkinen referenced this pull request from erix/integration2026-10-02 23:38:14 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-10-02 23:38:28 +02:00
erikinkinen referenced this pull request from erix/posixd2026-10-02 23:38:40 +02:00
WIP: Enforce realm lifecycle and native SIGPIPE custodyto WIP: Implement counted realm provisioning and lifecycle custodyThe signed Start preflight repair preserves an owned stopped mediator during validation-only refusal and retains rollback immediately before native Start. Factory completion uses the exact receiver that claimed the original invocation.
All 421 units pass. Formatting, strict host and freestanding Clippy, warning-denied builds and rustdoc pass with the current published Rust source matching the validated snapshot. Cleanup regression tracks the original defect; complete thread/guest and exact-head CI requirements remain independently open.
fcf6bf04 makes initial TLS preparation use Procd's held Process endpoint while retaining the child's exact grant and generation. The regression covers a nondefault control slot and cleanup. CI 489 passes.
The corrected VM still fails during staged commit. The remaining startup problem is tracked in integration#122.
Startup frame capabilities now carry READ|MAP at allocation and mapping. Realm workspace frames retain READ|WRITE|MAP. The allocator and mapping fixtures check the actual grants independently, so a shared constant cannot silently remove workspace write access.
Published
1b715630to keep materialization rows reserved throughout cleanup. The change includes interleaving and reuse controls and focused design notes. Integration’s catalog update and guest acceptance remain open.Child provisioning now omits an undeclared lifecycle alias while preserving Procd’s own sender for teardown and uncertain-cleanup bookkeeping. See optional lifecycle authority for the coordinated contract and remaining consumer migration.
The source changes are now split into these feature PRs:
#14, #15, #16, #17, #18, #19, #20, #21, #22, #23, #24, #25, #26, #27, #28, #29, #30, #31, #32, #33, #34, #35, #36, #37, #38, #39, #40, #41, #42, #43, #44, #45, #46, #47, #48, #49, #50, #51, #52, #53, #54, #55, #56.
Closing this aggregate PR unmerged as superseded. The replacement PRs remain WIP where acceptance or provider links are incomplete. The original branch is retained for recovery and existing source references.
Pull request closed