WIP: Implement POSIX mediation and original invocation lifetimes #5
Closed
erikinkinen
wants to merge 222 commits from
feature/posix-compat into main
pull from: feature/posix-compat
merge into: erix:main
erix:main
erix:feature/c-runtime-current-authority
erix:feature/modem-control-contract
erix:feature/thread-storage-geometry-214cde8
erix:feature/owned-ci-source-selection
erix:feature/probe-lifetimes-reconciled-4904fdc
erix:feature/documentation-reconciled-6cc5e59
erix:feature/complete-native-process-family-merge-ready-d6b89460
erix:feature/complete-native-process-family-merge-ready-be20753b
erix:feature/complete-native-process-family-merge-ready-688ae1cf
erix:feature/c-file-probe-result-lifetimes
erix:feature/serving-ownership-controls-beneath-their-owner
erix:feature/socket-selectors-to-their-owning-channel-module
erix:feature/owned-ci-source-selection-merge-ready-8351c93c
erix:feature/honor-group-permission-precedence-for-file-times
erix:feature/count-directory-request-capabilities-with-stable-iterator-api
erix:feature/native-terminal-operation-contract
erix:feature/fork-snapshot-contract
erix:feature/completed-readiness-data-explicitly
erix:feature/thread-storage-layout-reference
erix:feature/heap-current-authority-cohort
erix:feature/ordinary-startup-current-authority
erix:feature/compatibility-1-33-contract
erix:feature/owned-thread-runtime-state
erix:feature/owned-directory-streams
erix:feature/held-directory-bases-and-multi-packet-cwd
erix:feature/terminal-attribute-mediation
erix:feature/terminal-input-flush-mediation
erix:feature/clock-sleep
erix:feature/retire-terminal-controls-with-their-byte-descriptions
erix:feature/terminal-controls-on-original-descriptions
erix:feature/descriptor-byte-access-explicit
erix:feature/native-c-multibyte-client
erix:feature/c-readiness-through-original-realm
erix:feature/create-c-pipes-through-counted-descriptor-service
erix:feature/cwd-reports
erix:feature/native-c-directory-client
erix:feature/native-c-filesystem-client
erix:feature/both-original-namespace-directory-bases
erix:feature/file-timestamps
erix:feature/native-c-fatal-reply-custody
erix:feature/retaining-yields-with-thread-witness
erix:feature/native-c-descriptor-io
erix:feature/native-c-filesystem-bridge
erix:feature/native-c-process-environment
erix:feature/native-c-tokenization
erix:feature/native-c-heap-consumer
erix:feature/native-c-owned-strings
erix:feature/native-c-startup-consumer
erix:feature/checked-cargo-inputs
erix:feature/main-dependency-policy
erix:feature/thread-runtime-tls
erix:feature/native-pipe-client-checks
erix:feature/native-thread-creation-framing
erix:feature/native-thread-join-detach
erix:feature/native-thread-client
erix:feature/native-thread-creation
erix:feature/realm-failure-cleanup
erix:feature/authenticated-execution-origins
erix:feature/native-client-factory-custody
erix:feature/native-member-enrollment
erix:feature/native-thread-signal-policy
erix:feature/independent-native-calls
erix:feature/native-call-and-thread-boundaries
erix:feature/native-process-close-custody
erix:feature/candidate-cursor-reservations
erix:feature/native-first-submission
erix:feature/authenticated-invocation-origins
erix:feature/named-streams-through-original-scoped-sockets
erix:feature/readiness-sources-through-descriptor-reuse
erix:feature/extract-original-file-intent-after-creation
erix:feature/local-socket-pairs
erix:feature/native-file-creation-intent
erix:feature/unconnected-socket-descriptions
erix:feature/descriptor-advisory-locks
erix:feature/descriptor-readiness
erix:feature/temporary-output-publication
erix:feature/conditional-namespace-effects-over-original-entries
erix:feature/live-filesystem-lifetime-across-providers
erix:feature/original-mode-ownership-and-access-operations
erix:feature/retained-file-truncation-and-synchronization
erix:feature/file-status-contract
erix:feature/inherited-file-status-through-original-streams
erix:feature/namespace-mutation-contract
erix:feature/raw-readlink-through-original-client-custody
erix:feature/directory-cursor-positions
erix:feature/pipe-fifo-metadata
erix:feature/special-inode-status
erix:feature/cooperative-client-signals
erix:feature/counted-pipes-sigpipe
erix:feature/original-pathname-and-descriptor-file-status
erix:feature/signal-interrupted-streams
erix:feature/file-controls-publication
erix:feature/positioned-file-io
erix:feature/retained-blocking-streams
erix:feature/conditional-file-creation
erix:feature/linked-parent-mount-controls
erix:feature/process-creation-mask
erix:feature/raw-symlink-expansion
erix:feature/conditional-file-resize
erix:feature/native-mount-ascent-and-re-entry-through-directory-fds
erix:feature/own-process-descriptors-separately-from-shared-sources
erix:feature/deny-only-permission-boundaries
erix:feature/descriptor-filesystem-io
erix:feature/directory-access-evidence
erix:feature/realm-retained-credentials
erix:feature/complete-final-realm-capability-inventory
erix:feature/counted-private-realm-byte-service
erix:feature/realm-duplex-startup-bindings
erix:feature/native-realm-bootstrap
erix:feature/realm-bootstrap-control-waits
erix:feature/terminal-timed-break
erix:feature/physical-terminal-configuration-contract
erix:feature/terminal-timed-read-cursor-gaps
erix:feature/terminal-output-drain-mediation
erix:feature/terminal-retained-read-intent
erix:feature/terminal-software-flow-mediation
erix:feature/terminal-output-flush-mediation
erix:feature/ci-source-acquisition
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/posixd!5
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
Serve independent original calls on one native receiver and implement counted ordinary thread birth, join/detach and per-thread signal ownership. Retain exact caller, source, result, wake, mapping and cleanup custody through uncertainty.
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
The mediator reserves actual shared invocation storage, its nonwrapping generation and original receiver/client association before CLAIM. Every returned owner is retained before interpreting status. Capacity or generation exhaustion performs no CLAIM. One receiver and one process-policy record admit independent original calls from the actual native process/execution origin; another call duplicates neither grant nor policy.
A generation-checked intrusive roster alternates fair original-call progress with receiver intake. Every caller retains separate request/result extents and wake observations. Result inspection names the exact original owner. Terminal retirement drains every call, including refused completion and source cleanup, before descriptor, provider, scope, watch or receiver disposal. No empty invocation arena scan is needed for each retained progress turn; this is a source-level change without a measured speedup claim.
Only actual related descriptor changes queue. Their original target occupation and sole prospective duplicate source survive fd reuse; stale targets refuse without changing a new binding. Resumption moves the same alias hold after complete preflight. Independent new fd and pair acquisitions use distinct actual counted rows without blanket process quiescence. Original process Close composes with the published keyed prepare/Commit/receipt acknowledgment; an older blocking native Wait no longer prevents Close intake or semantic cleanup. Original receipt retries cannot release newer locks.
Each readiness call owns its noncopy temporary-mask observation. Cancellation cannot overwrite another call or a later permanent mask. Signal selection consumes one actual occurrence and reserves it exclusively for Take; another call cannot reuse it. New occurrences survive delayed Take. Failed handoff freezes ordinary intake/results while preserving every original native owner for terminal drain.
ordinary native thread birth reserves a counted creator-bound row before native effects, preflights immutable code/stack/TLS inputs and retains actual mapping observations through preparation, context initialization, enrollment and Start. Start consumes the original prepared member; afterward the same binding is narrowed to READ and freshly observed before ordinary reply. Spare global rows cannot expand the client's declared capacity.
join and detach ownership binds exclusive join, detach and initial-result retirement to actual same-process native observations. Readiness does not consume a result; committed join waits for genuine departure, quiescence and original cleanup. Initial process anchors and charges survive leader exit. Shared process actions remain separate from original per-thread masks and pending signals.
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
This review remains WIP until its declared scope and dependent requirements are complete.
erikinkinen referenced this pull request from erix/docs2026-09-12 20:52:05 +02:00
erikinkinen referenced this pull request from erix/docs2026-09-13 06:48:58 +02:00
WIP: Specify isolated POSIX realm ownership and bootstrapto WIP: Specify realm bootstrap and native retirement ownershipWIP: Specify realm bootstrap and native retirement ownershipto WIP: Specify staged mediator custody and realm bootstrap ownershiperikinkinen referenced this pull request from erix/docs2026-09-19 14:37:21 +02:00
erikinkinen referenced this pull request from erix/integration2026-09-19 14:37:27 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-09-29 01:45:46 +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/vfsd2026-09-29 02:27:45 +02:00
erikinkinen referenced this pull request from erix/lib-posixabi2026-09-29 02:44:24 +02:00
WIP: Specify staged mediator custody and realm bootstrap ownershipto WIP: Bind realm authority receipts and retain provider cleanupWIP: Bind realm authority receipts and retain provider cleanupto WIP: Bind realm authority and strict native client witnessesWIP: Bind realm authority and strict native client witnessesto WIP: Enforce realm receipt custody and complete native inventoryWIP: Enforce realm receipt custody and complete native inventoryto WIP: Enforce realm custody and prepare deny-only permission policyerikinkinen referenced this pull request from erix/exsh2026-09-29 08:16:16 +02:00
erikinkinen referenced this pull request from erix/ramfsd2026-09-29 08:53:15 +02:00
WIP: Enforce realm custody and prepare deny-only permission policyto WIP: Retain realm stream calls and integrate native provider intakeWIP: Retain realm stream calls and integrate native provider intaketo WIP: Mediate POSIX realm I/O and original directory accessWIP: Mediate POSIX realm I/O and original directory accessto WIP: Mediate POSIX realm I/O and original filesystem permissionserikinkinen referenced this pull request from erix/rootd2026-09-29 17:09:17 +02:00
erikinkinen referenced this pull request from erix/loaderd2026-09-29 18:27:40 +02:00
WIP: Mediate POSIX realm I/O and original filesystem permissionsto WIP: Mediate POSIX descriptors and original filesystem permissionsWIP: Mediate POSIX descriptors and original filesystem permissionsto WIP: Implement native realm descriptors and filesystem I/Oerikinkinen referenced this pull request from erix/lib-posixabi2026-09-30 09:47:01 +02:00
erikinkinen referenced this pull request from erix/rootd2026-09-30 09:47:02 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-09-30 11:56:22 +02:00
WIP: Implement native realm descriptors and filesystem I/Oto WIP: Implement realm I/O and authenticated client signalsWIP: Implement realm I/O and authenticated client signalsto WIP: Implement realm I/O, counted pipes and SIGPIPEerikinkinen referenced this pull request from erix/rootd2026-09-30 16:12:19 +02:00
erikinkinen referenced this pull request from erix/coreutils2026-09-30 17:11:55 +02:00
erikinkinen referenced this pull request from erix/e2fsd2026-09-30 17:12:32 +02:00
erikinkinen referenced this pull request from erix/extop2026-09-30 17:12:35 +02:00
erikinkinen referenced this pull request from erix/fatd2026-09-30 17:12:35 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-09-30 17:12:44 +02:00
erikinkinen referenced this pull request from erix/lib-stdio2026-09-30 17:12:46 +02:00
erikinkinen referenced this pull request from erix/timed2026-09-30 17:12:54 +02:00
erikinkinen referenced this pull request from erix/ttyd2026-09-30 17:12:54 +02:00
WIP: Implement realm I/O, counted pipes and SIGPIPEto WIP: Implement original realm I/O, status and directory streamsWIP: Implement original realm I/O, status and directory streamsto WIP: Implement original realm I/O and namespace semanticserikinkinen referenced this pull request from erix/e2fsd2026-10-02 03:28:16 +02:00
WIP: Implement original realm I/O and namespace semanticsto WIP: Implement POSIX services over original realm authorityerikinkinen referenced this pull request from erix/docs2026-10-02 22:46:39 +02:00
erikinkinen referenced this pull request from erix/integration2026-10-02 22:46:40 +02:00
WIP: Implement POSIX services over original realm authorityto WIP: Implement scoped POSIX services and named local streamsWIP: Implement scoped POSIX services and named local streamsto WIP: Implement scoped POSIX services and counted invocation custodyWIP: Implement scoped POSIX services and counted invocation custodyto WIP: Implement scoped POSIX services and retained call sourceserikinkinen referenced this pull request from erix/vfsd2026-10-03 01:36:52 +02:00
WIP: Implement scoped POSIX services and retained call sourcesto WIP: Implement POSIX mediation and original invocation lifetimeserikinkinen referenced this pull request from erix/docs2026-10-04 11:37:34 +02:00
erikinkinen referenced this pull request from erix/integration2026-10-04 11:37:42 +02:00
The thread client uses separate ELF stack and TLS mappings with an unmapped guard. It completes the existing descriptor and signal workload before ordinary birth, a member call, callback return and self-exit. Callback publication ends the startup borrow; it does not establish departure or join. Ordinary join/detach, allocation and dynamic TLS remain open.
Moved ordinary thread framing into LibPosixABI and migrated Posixd to the shared implementation. Native exclusive join/detach work continues in #41.
The shared join/detach implementation and three-birth client workload are pushed. The service retains native departure and cleanup independently from logical result consumption, preserves the initial process anchor, and releases additional-member quota before safe reuse. The client keeps Ready private until Commit caller retirement and local policy restoration.
Integration’s five target records now include the direct LibConstantTime dependency. Full guest acceptance and libc cancellation remain open in the lifecycle issue.
94e8cb8f advances the LibPosixABI pin alongside its explicit-observation repair. The supplier’s Rust inputs are unchanged; this keeps the consumer revision coherent with the upcoming catalog update.
The local unit checks on
94e8cb8fnow pass all 607 cases in each of the default and all-feature configurations without warnings. The original disk-floor interruption is retained. Current CI still fails before checkout or tests; the runner issue remains open in Integration #116.Added the omitted pipe client to the existing native CI loop in c702f3bf. Its target-only SIGPIPE entrypoint now receives the same strict Clippy and debug/release builds as the other clients. #42 tracks the coverage defect and confirmation from the new workflow.
Added the fork snapshot contract in
9a8f9ed6, with the matching manual ind744f254. It defines child identity, shared descriptions, explicit capability inheritance and publication/cleanup ownership. Native copying, runtime child admission and libc remain open in #3.edeff8c7 connects ordinary thread birth to fresh runtime TLS preparation. The caller supplies storage; registry bytes grant no memory authority, and Kernel still checks the original mappings. Integration is adopting the new workload and its LibDynlink dependency.
The ordinary C startup fixture now exercises environment mutation, caller-owned strings, replacement tables, allocation failure and environment access from exit handlers. It extends the existing startup scenarios without adding capability grants. The matching runtime work is tracked in LibCstd #12.
Published the C consumer source for mediated descriptor I/O, using an explicitly bound original realm and independent concurrent call storage. The process-root producer preserves the existing reciprocal, heap, thread and terminal scenarios.
Conventional aliases, libc signal delivery, compatibility startup and guest acceptance remain open.
The C file bridge now uses the existing admitted realm and independent call registry. Each call owns a complete immutable request snapshot. Vector I/O retains its original coordinates and uses the contiguous byte route, preserving PIPE_BUF and allowing a sibling writer to advance a blocked reader. The additional C workload exercises all 35 file interfaces.
File timestamps now use owner or fresh WRITE policy on the original object. Both Omit skips final ownership metadata while retaining prefix checks. Relative directory bases have counted holds through close/dup2, and uncertain replies retain the original caller and first frame.
Tracked in file timestamp updates.
The heap client now sends all four directory operations through its existing compatibility caller in this change. The C workload adds raw names, capacity refusal, EOF, bookmarks and alias lifetime while preserving the descriptor budget. Remaining acceptance is tracked in the directory issue.
The C poll/select bridge now uses the existing mediated readiness operation with independent call storage and original native retirement. The filesystem C probe checks readiness on its actual opened file before the existing workload success result. Native C/guest acceptance remains open; see the design.
The C descriptor fixture now creates its first nonblocking pair through the new C adapter, runs the existing byte/EOF/close checks, then creates and closes a default pair. The remaining Rust alias and member-thread checks keep their existing pool and lifetime rules. C runtime companion.
Both heap workloads now call the original Cstd multibyte probe through the selected process-root runtime. The consumer checks the returned result and preserves the original thread and heap observations. The matching Integration source producer is pushed; actual native/VM execution remains open.
Added the clock/sleep bridge and restricted terminal-control ownership. Clock operations retain their original native callers, while terminal control views follow byte descriptions and alias groups through teardown. C terminal identification/window dispatch is the next slice.
The terminal bridge now holds the original description and control caller through completion. Missing view rights give EACCES; ENOTTY requires a known non-terminal. The native C workload includes window restoration and aliases that remain usable after the supplied descriptor closes.
Extend the C workload and adapter controls for independent directory bases and multi-packet cwd results, including partial failure and cleanup through held parents. The existing realm grants and quotas remain sufficient. Change.
This work is now split into feature PRs, starting at #46 and ending at #146. Each PR links to its prerequisite, and the complete stack preserves the original runtime changes. The feature PRs remain WIP for their remaining integration and review.
Closing this aggregate without merging; the replacement branches remain available for review.
Pull request closed