WIP: Implement scoped realm admission and explicit call budgets #2
Closed
erikinkinen
wants to merge 178 commits from
feature/posix-compat into main
pull from: feature/posix-compat
merge into: erix:main
erix:main
erix:feature/realm-terminal-control-preparation
erix:feature/realm-plan-contract-documentation-merge-ready-a6bdd9b5
erix:feature/source-contract-documentation-merge-ready-89058f06
erix:feature/contribution-status-guidance-merge-ready-d3e941e3
erix:feature/owned-ci-source-selection
erix:feature/source-contract-documentation
erix:feature/realm-plan-contract-documentation
erix:feature/contribution-status-guidance
erix:feature/canonical-contribution-policy
erix:feature/counted-realm-authority-storage
erix:feature/explicit-realm-descriptor-storage
erix:feature/narrowed-root-acquisition
erix:feature/original-stream-receiver-adoption
erix:feature/authenticated-startup-stream-kinds
erix:feature/counted-process-cwd
erix:feature/reserved-receiver-destination-refusal
erix:feature/complete-inherited-descriptions
erix:feature/counted-job-runtime-policy
erix:feature/retained-stream-exec
erix:feature/authenticated-child-lifecycle-policy
erix:feature/complete-realm-credential-seal
erix:feature/derived-native-broker-custody
erix:feature/contiguous-pipeline-receipts
erix:feature/owned-stream-disposal-controls
erix:feature/counted-realm-client-credentials
erix:feature/realm-directory-failure-diagnostics
erix:feature/resolver-slot-search
erix:feature/counted-client-factory-delivery
erix:feature/resolver-storage-refusal
erix:feature/resolver-terminal-diagnostics
erix:feature/counted-client-factory-custody
erix:feature/counted-realm-executions
erix:feature/native-realm-origin-window-geometry
erix:feature/counted-realm-call-subscriptions
erix:feature/recipient-stream-readiness
erix:feature/counted-trusted-program-context
erix:feature/disabled-local-stream-storage
erix:feature/owned-complete-program-display
erix:feature/authenticated-artifact-entry-preparation
erix:feature/receipt-only-filesystem-evidence
erix:feature/typed-resolution-outcomes
erix:feature/explicit-fifo-creators
erix:feature/native-buffer-event-metadata
erix:feature/original-lender-stream-metadata
erix:feature/counted-supervisor-clock-grants
erix:feature/explicit-unused-pipe-capacity
erix:feature/original-supervisor-signal-routing
erix:feature/frozen-original-process-masks
erix:feature/native-realm-request-arena-geometry
erix:feature/retained-acquisition-scope-custody
erix:feature/abandoned-stream-reply-custody
erix:feature/counted-original-resize-authorities
erix:feature/shared-resize-operation-recognition
erix:feature/counted-external-stream-provisioning
erix:feature/recipient-view-cancellation-retirement
erix:feature/retained-realm-stream-preparation
erix:feature/frozen-realm-directory-delivery
erix:feature/post-alias-directory-root-retirement
erix:feature/retained-realm-directory-preparation
erix:feature/exact-directory-root-receipts
erix:feature/sealed-client-start-and-accounting
erix:feature/two-sided-realm-configuration-seal
erix:feature/frozen-counted-realm-client-provisioning
erix:feature/retained-private-realm-client-preparation
erix:feature/authenticated-realm-runtime-dispatch
erix:feature/counted-realm-client-reservations
erix:feature/guarded-realm-startup
erix:feature/caller-bound-realm-admission-storage
erix:feature/retained-realm-bootstrap
erix:feature/retained-realm-executable-preparation
erix:feature/ci-source-acquisition
erix:feature/realm-executable-preparation
erix:feature/native-cli
No reviewers
Labels
Clear labels
alpha-1
EriX Alpha 1 release acceptance
bug
Something is not working
ci
docs
duplicate
This issue or pull request already exists
enhancement
New feature
help wanted
Need some help
invalid
Something is wrong
performance
Measured performance profiling, bottleneck analysis, and regression budgets.
phase-6
Phase 6: POSIX compatibility, full EriX self-hosting, and its required audits and validation.
question
More information is needed
refactor
Code cleanup, removal of obsolete paths, and structural improvements preserving behavior.
security
wontfix
This won't be fixed
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
erix/launchd!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
Carry authenticated realm and client configuration through counted storage, genuine native provisioning and start acknowledgment. Retain the original factory and delivery sources through publication, attenuation and uncertain cleanup.
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
counted execution storage separates process policy, execution, invocation and readiness rows. The producer uses the authenticated target layout and actual type sizes and alignments; explicit capacities govern storage and retained packet regions. Spare rows and numeric thread labels grant no native membership.
client factory custody retains the original client, realm request and stage grant before private provisioning. Positive capacity includes the initial execution and must fit the declared thread budget. Procd returns the same unique stage grant followed by the genuine factory. Native observations must agree on the original process, serial, rights and construction intent before stopped-client provisioning proceeds.
The provisioning source has READ/WRITE/MINT/GRANT rights. Recipient publication transfers the original factory with READ/WRITE/MINT; WRITE serves only the initial-result retirement duty and is removed after genuine retirement. Positive transfer is not replayed, and independent source absence precedes selector reuse. Start acknowledgment, frozen configuration and receiver readiness retain their own native owners. Unknown accepted effects keep the original caller, sources and cleanup uncertainty.
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.
erikinkinen referenced this pull request from erix/exsh2026-09-19 13:09:11 +02:00
erikinkinen referenced this pull request from erix/posixd2026-09-24 21:10:21 +02:00
erikinkinen referenced this pull request from erix/integration2026-09-24 21:10:26 +02:00
erikinkinen referenced this pull request from erix/posixd2026-09-24 21:35:28 +02:00
WIP: Select exact executable preparation for realm mediatorsto WIP: Implement counted private realm startup and cleanuperikinkinen referenced this pull request from erix/docs2026-09-25 07:33:41 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-09-29 01:14:57 +02:00
erikinkinen referenced this pull request from erix/lib-bootstrap2026-09-29 02:15:53 +02:00
erikinkinen referenced this pull request from erix/lib-posixabi2026-09-29 02:44:24 +02:00
erikinkinen referenced this pull request from erix/lib-time2026-09-29 03:06:22 +02:00
erikinkinen referenced this pull request from erix/vfsd2026-09-29 03:06:23 +02:00
erikinkinen referenced this pull request from erix/powerboxd2026-09-29 16:10:16 +02:00
erikinkinen referenced this pull request from erix/rootd2026-09-29 16:10:50 +02:00
erikinkinen referenced this pull request from erix/ttyd2026-09-29 16:10:51 +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-30 11:56:21 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-09-30 11:56:22 +02:00
WIP: Implement counted private realm startup and cleanupto WIP: Bind realm lifecycle and signals to original supervisorserikinkinen referenced this pull request from erix/lib-posixabi2026-09-30 11:56:50 +02:00
erikinkinen referenced this pull request from erix/rootd2026-09-30 11:56:58 +02:00
WIP: Bind realm lifecycle and signals to original supervisorsto WIP: Bind realm lifecycle and counted pipe admissionerikinkinen referenced this pull request from erix/posixd2026-09-30 19:00:13 +02:00
erikinkinen referenced this pull request from erix/coreutils2026-09-30 19:00:50 +02:00
erikinkinen referenced this pull request from erix/e2fsd2026-09-30 19:01:54 +02:00
erikinkinen referenced this pull request from erix/extop2026-09-30 19:02:04 +02:00
erikinkinen referenced this pull request from erix/fatd2026-09-30 19:02:07 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-09-30 19:02:24 +02:00
erikinkinen referenced this pull request from erix/lib-posixabi2026-09-30 19:02:26 +02:00
erikinkinen referenced this pull request from erix/lib-stdio2026-09-30 19:02:27 +02:00
erikinkinen referenced this pull request from erix/ramfsd2026-09-30 19:02:34 +02:00
erikinkinen referenced this pull request from erix/rootd2026-09-30 19:02:34 +02:00
erikinkinen referenced this pull request from erix/timed2026-09-30 19:02:36 +02:00
erikinkinen referenced this pull request from erix/ttyd2026-09-30 19:02:36 +02:00
erikinkinen referenced this pull request from erix/vfsd2026-10-01 20:20:16 +02:00
erikinkinen referenced this pull request from erix/vfsd2026-10-01 20:20:19 +02:00
erikinkinen referenced this pull request from erix/docs2026-10-01 20:20:19 +02:00
erikinkinen referenced this pull request from erix/integration2026-10-01 20:20:20 +02:00
erikinkinen referenced this pull request from erix/posixd2026-10-01 20:20:21 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-10-01 20:20:21 +02:00
erikinkinen referenced this pull request from erix/ramfsd2026-10-01 20:20:22 +02:00
erikinkinen referenced this pull request from erix/e2fsd2026-10-01 20:20:22 +02:00
erikinkinen referenced this pull request from erix/fatd2026-10-01 20:20:23 +02:00
erikinkinen referenced this pull request from erix/rootd2026-10-01 21:46:30 +02:00
erikinkinen referenced this pull request from erix/docs2026-10-02 15:17:52 +02:00
erikinkinen referenced this pull request from erix/integration2026-10-02 15:17:53 +02:00
WIP: Bind realm lifecycle and counted pipe admissionto WIP: Broker native realms and original stream readinesserikinkinen referenced this pull request from erix/docs2026-10-02 23:37:39 +02:00
erikinkinen referenced this pull request from erix/integration2026-10-02 23:38:14 +02:00
WIP: Broker native realms and original stream readinessto WIP: Implement scoped realm admission and explicit call budgetserikinkinen 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
5d8cddb0fixes #20: a clean resolver storage rejection now returns its ordinary launch failure instead of selecting the internal fail-stop path. Cleanup order and unknown or uncertain failure handling are unchanged.CI 398 passes for
5d8cddb0; #20 is closed. The runtime catalog still needs to select this revision before guest results can cover the change.dcbb1cc8 gives each resolver error variant a fixed terminal tag in the existing optional exit trace. The tags carry only the error variant; rollback and reply classification follow the existing paths.
This supports investigation of the native launch failure. Its failing branch remains unknown. An explicit traced guest run is still needed before drawing a conclusion.
25efde7a fixes resolver registration past occupied Vfsd records and records cleanup before local endpoint creation. Resolver bookkeeping now has its own module;
job.rsis 908 lines.The focused regressions, both 672-test suites and the Rust/native checks pass without warnings. Coherent runtime adoption and the original nested-script guest remain pending.
The resolver-slot regression is closed: the original nested-script exit-status guest passes with
25efde7a, preserving its script, grants and time limits. The packaged executable is tied to the selected source through the maintained transformations. Remaining phase work keeps this PR open.39d2a7cbadds the opt-in realm-directory diagnostic on the existing held endpoint. Replies require the original running caller, realm, generations and received authority; uncertain cleanup suppresses the reply. The design issue tracks the affected guest failure.Failed diagnostic replies now wait until the original realm is fully retired. This includes provider BUSY replies and cleanup failures. The fix is in
3e69090ee4; #24 tracks the remaining current CI check, and #22 still needs its original guest run.Exercise recipient-view disposal through the real stream provider and its owned Reply envelope. The provider disposes the recipient alias while the lender remains usable, and retains delivery custody until completion or cancellation settles.
Fixed the supplementary-group omission in both seal completion checks in afbee6d1; see Integration #162. The fixture reads the delivered canonical header and adds complete, delayed and premature group-tail controls. Host execution and the existing five VM cases remain open.
The seal fixtures now supply supplementary groups in canonical ascending order so they can reach the seal protocol. The production record-count fix is unchanged. Further results are tracked in the realm seal issue.
The current revision passes CI 428: all 698 Rust test executions and 23 Markdown files, with no warning lines. The full local default and all-feature matrices also pass, including the three supplementary-group controls.
Guest acceptance remains open. Run 426’s missing server logs still leave its original failure unexplained.
Authenticated manifest policy now selects the child lifecycle alias; stream access and argv do not enable it. See optional lifecycle authority for the coordinated contract and remaining consumer migration.
Superseded by the feature-branch stack ending at #96, including the execution slices and terminal preparation. All 94 roadmap checklist items are retained, with supporting source and documentation reviewed. Closing this aggregate PR unmerged; its branch remains available. Native execution and self-hosting acceptance remain open.
Pull request closed