WIP: Define scoped POSIX compatibility and named stream intent #3
Closed
erikinkinen
wants to merge 150 commits from
feature/posix-compat into main
pull from: feature/posix-compat
merge into: erix:main
erix:main
erix:feature/explicit-ci-repository-catalog
erix:feature/validation-helper-context-d92e6c1
erix:feature/checked-errno-assignments
erix:feature/completion-contracts-reconciled-11064f9
erix:feature/documentation-lint-repair
erix:feature/owned-ci-source-graph-merge-ready-546b04a7
erix:feature/compatibility-1-33-contract-merge-ready-9c599673
erix:feature/compatibility-1-33-contract-merge-ready-d57b2b79
erix:feature/integer-c-boundary
erix:feature/compatibility-1-33-contract-merge-ready-8bc85c70
erix:feature/checked-errno-assignments-merge-ready-6aff6f6a
erix:feature/native-completion-context
erix:feature/rust-formatting-contract
erix:feature/ci-resolved-source-contract
erix:feature/owned-ci-source-graph
erix:feature/explicit-task-reaper-observation
erix:feature/native-signal-policy-diagnostics
erix:feature/local-errno-packet-domains
erix:feature/native-c-abi-child-custody
erix:feature/ordinary-thread-lifecycle-codecs
erix:feature/test-crate-rustdoc-policy
erix:feature/compatibility-wire-reference
erix:feature/named-local-stream-operations
erix:feature/unconnected-stream-descriptions
erix:feature/local-stream-socket-pairs
erix:feature/signal-entry-restoration-masks
erix:feature/counted-descriptor-readiness
erix:feature/descriptor-advisory-locks
erix:feature/restricted-permission-metadata
erix:feature/signed-file-controls
erix:feature/counted-namespace-link-replies
erix:feature/represented-device-status
erix:feature/directory-stream-positions
erix:feature/source-qualified-file-status
erix:feature/pipe-creation-frames
erix:feature/live-signal-actions
erix:feature/shared-open-status
erix:feature/positioned-vectored-io
erix:feature/process-mask-exchange
erix:feature/pathname-error-domains
erix:feature/file-open-intent
erix:feature/descriptor-operations
erix:feature/bound-file-resize
erix:feature/directory-access-requests
erix:feature/retained-revision-acls
erix:feature/borrowed-permission-wire-groups
erix:feature/deny-only-access-policy
erix:feature/counted-byte-io
erix:feature/file-status-c-records
erix:feature/checked-byte-extents
erix:feature/signed-file-time-arithmetic
erix:feature/ci-validation-helper-context
erix:feature/owned-directory-streams
erix:feature/checked-query-codecs
erix:feature/physical-terminal-line-configuration
erix:feature/physical-terminal-modem-reception
erix:feature/terminal-drain-deferred-settings
erix:feature/terminal-software-flow
erix:feature/terminal-timed-break
erix:feature/terminal-attribute-frames
erix:feature/terminal-input-queue-completion
erix:feature/terminal-output-queue-completion
erix:feature/clock-sleep-requests
erix:feature/fixed-terminal-control
erix:feature/terminal-encoding-errno
erix:feature/extended-errno-controls
erix:feature/named-socket-minor-controls
erix:feature/physical-process-directory-reports
erix:feature/advisory-lock-conflict-value
erix:feature/rooted-file-timestamps
erix:feature/c-abi-selected-source-routing
erix:feature/signal-child-observation-metadata
erix:feature/wait-resource-metadata
erix:feature/dependency-review-policy
erix:feature/ignored-reserved-signal-observations
erix:feature/wire-validation-repairs
erix:feature/compatibility-1-33-contract
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/lib-posixabi!3
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
Define authority-free compatibility values and framing for permissions, signals, descriptor/socket operations and counted ordinary thread birth and lifecycle. Preserve independent C/Rust integer declarations and the compiler-probe driver's original native custody.
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 library borrows explicit caller bytes, allocates no memory and performs no IPC, native lookup or capability operation. Identifiers, generations, byte extents and checked records remain descriptive. Numeric, errno, permission and file/time checks cannot establish object authority, native access or complete POSIX/C ABI conformance.
The local errno contract appends ERANGE=40 to the checked scalar and C constants. Explicit named packet vocabularies preserve assignments 1–39 for compatibility 1.25, NBF1 and NJR1. Their layout/version tags, structural error precedence and whole-output refusal rules remain unchanged. The ABI design owns the remaining mappings and consumer contracts.
Ordinary thread framing owns shared NBT/NBR/NBF birth and NJL/NJR lifecycle codecs, separate from the versioned compatibility message and native watch families. Complete memory recipes and Ready/Commit/Abort/Detach replies correlate original operation, target, epoch and opaque result. A parsed positive frame supplies no mapping, source binding, member authority, departure proof or permission to replay an unknown effect. Posixd owns genuine creator/factory/member custody, exclusive join links, watches and cleanup.
Compatibility bind/connect/listen/accept framing carries counted raw paths, backlog and explicit new-fd policy. Posixd's consumer reserves the actual fd and retains the original native pin; positive original COMPLETE gates installation. Independent counted queues own client/server ends, and explicit accept reserves the new description. Refused publication disposes only its original endpoint; names and copied identity bytes cannot grant communication or replace live native socket pins.
The integer C ABI contract keeps independent declaration and call probes separate from runtime interoperability. Its isolated driver retains the actual native leader and duplicate pidfd witness to the same open description, rejects native auto-reaping or substituted custody before group effects, and holds the complete original signal policy and disabled alternate-stack state through acquisition and retirement. Unknown restoration retains the first failure and original mask; descriptor numbers and cached Python handler identities cannot replace the owner.
Complete C/libc consumers, dynamic TLS, native cancellation and thread/signal/socket workloads retain their separate acceptance requirements. Host declaration or compiler-probe checks do not establish source/frame admission, EriX guest effects or the required guest and external-toolchain rebuilds.
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
Cohesive code files below 1,000 lines and preserved missing-docs gates
Relevant component contracts and technical manual sources updated
Accurate source progress and separately scoped execution evidence
Complete concurrent socket, libc and imported-tool requirements
Full EriX and external toolchain guest rebuild demonstrations
This review remains WIP until its declared scope and dependent requirements are complete.
erikinkinen referenced this pull request from erix/docs2026-09-12 10:09:10 +02:00
WIP: Define compatibility identifiers and checked query codecsto WIP: Define compatibility codecs and the integer C boundaryerikinkinen referenced this pull request from erix/lib-ipc2026-09-12 12:00:32 +02:00
WIP: Define compatibility codecs and the integer C boundaryto WIP: Define compatibility codecs, C integers and checked errno valuesWIP: Define compatibility codecs, C integers and checked errno valuesto WIP: Define compatibility codecs and contextual native completion rulesWIP: Define compatibility codecs and contextual native completion rulesto WIP: Define checked compatibility ABI and file/time arithmeticWIP: Define checked compatibility ABI and file/time arithmeticto WIP: Define compatibility ABI values and checked numeric rangeserikinkinen referenced this pull request from erix/docs2026-09-14 07:57:37 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-09-24 21:46:45 +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/launchd2026-09-29 05:42:42 +02:00
erikinkinen referenced this pull request from erix/procd2026-09-29 05:42:43 +02:00
erikinkinen referenced this pull request from erix/posixd2026-09-29 05:42:44 +02:00
erikinkinen referenced this pull request from erix/docs2026-09-29 05:42:45 +02:00
WIP: Define compatibility ABI values and checked numeric rangesto WIP: Define compatibility ABI values and deny-only permission metadataerikinkinen referenced this pull request from erix/e2fsd2026-09-29 10:50:21 +02:00
erikinkinen referenced this pull request from erix/integration2026-09-29 10:50:57 +02:00
WIP: Define compatibility ABI values and deny-only permission metadatato WIP: Define compatibility metadata and complete ACL acquisitionerikinkinen referenced this pull request from erix/ramfsd2026-09-29 10:51:37 +02:00
WIP: Define compatibility metadata and complete ACL acquisitionto WIP: Define compatibility ABI and original directory access codecserikinkinen referenced this pull request from erix/docs2026-09-29 17:07:04 +02:00
erikinkinen referenced this pull request from erix/exsh2026-09-29 17:08:16 +02:00
erikinkinen referenced this pull request from erix/integration2026-09-29 17:08:27 +02:00
erikinkinen referenced this pull request from erix/launchd2026-09-29 17:08:45 +02:00
WIP: Define compatibility ABI and original directory access codecsto WIP: Define POSIX compatibility framing and bound filesystem operationserikinkinen referenced this pull request from erix/posixd2026-09-29 17:09:12 +02:00
erikinkinen referenced this pull request from erix/rootd2026-09-29 17:09:17 +02:00
erikinkinen referenced this pull request from erix/vfsd2026-09-29 17:09:19 +02:00
WIP: Define POSIX compatibility framing and bound filesystem operationsto WIP: Define POSIX descriptor and bound filesystem framingerikinkinen referenced this pull request from erix/loaderd2026-09-29 18:27:40 +02:00
WIP: Define POSIX descriptor and bound filesystem framingto WIP: Define POSIX descriptor, open and filesystem framingerikinkinen referenced this pull request from erix/docs2026-09-30 09:47:00 +02:00
erikinkinen referenced this pull request from erix/integration2026-09-30 09:47:01 +02:00
erikinkinen referenced this pull request from erix/posixd2026-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/docs2026-09-30 13:12:41 +02:00
erikinkinen referenced this pull request from erix/integration2026-09-30 13:12:55 +02:00
WIP: Define POSIX descriptor, open and filesystem framingto WIP: Define checked POSIX compatibility and pipe framingerikinkinen referenced this pull request from erix/posixd2026-09-30 13:13:06 +02:00
erikinkinen referenced this pull request from erix/rootd2026-09-30 13:13:08 +02:00
erikinkinen referenced this pull request from erix/posixd2026-09-30 13:23:19 +02:00
erikinkinen referenced this pull request from erix/docs2026-09-30 16:12:16 +02:00
erikinkinen referenced this pull request from erix/integration2026-09-30 16:12:17 +02:00
erikinkinen referenced this pull request from erix/posixd2026-09-30 16:12:19 +02:00
erikinkinen 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/exsh2026-09-30 17:12:34 +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/launchd2026-09-30 17:12:41 +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/loaderd2026-09-30 17:12:47 +02:00
erikinkinen referenced this pull request from erix/procd2026-09-30 17:12:52 +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
erikinkinen referenced this pull request from erix/vfsd2026-09-30 17:12:55 +02:00
erikinkinen referenced this pull request from erix/docs2026-10-01 04:47:24 +02:00
erikinkinen referenced this pull request from erix/integration2026-10-01 04:47:27 +02:00
WIP: Define checked POSIX compatibility and pipe framingto WIP: Define counted namespace and compatibility contractserikinkinen referenced this pull request from erix/posixd2026-10-01 04:47:28 +02:00
erikinkinen referenced this pull request from erix/rootd2026-10-01 04:47:29 +02:00
WIP: Define counted namespace and compatibility contractsto WIP: Define namespace and compatibility contractserikinkinen referenced this pull request from erix/e2fsd2026-10-02 06:26:39 +02:00
erikinkinen referenced this pull request from erix/fatd2026-10-02 06:27:03 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-10-02 06:27:36 +02:00
erikinkinen referenced this pull request from erix/ramfsd2026-10-02 06:27:52 +02:00
erikinkinen referenced this pull request from erix/vfsd2026-10-02 06:27:55 +02:00
WIP: Define namespace and compatibility contractsto WIP: Define counted compatibility and local stream contractserikinkinen referenced this pull request from erix/docs2026-10-02 21:36:32 +02:00
erikinkinen referenced this pull request from erix/integration2026-10-02 21:36:32 +02:00
WIP: Define counted compatibility and local stream contractsto WIP: Define POSIX wire contracts and local stream lifecycleerikinkinen referenced this pull request from erix/posixd2026-10-02 21:36:33 +02:00
erikinkinen referenced this pull request from erix/rootd2026-10-02 21:36:34 +02:00
erikinkinen 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: Define POSIX wire contracts and local stream lifecycleto WIP: Define scoped POSIX compatibility and named stream intenterikinkinen referenced this pull request from erix/rootd2026-10-02 22:46:43 +02:00
The C ABI probe driver now checks native duplicate and independent self descriptors before acquiring a child. It preserves the first refusal and retains uncertain cleanup claims. Shared birth and join/detach codecs remain the separately pinned Rust API. See Integration #113 for runner compatibility.
ERANGE=40 is published as a local scalar and C constant. Existing compatibility 1.25, NBF1 and NJR1 packets keep assignments 1–39 and reject ERANGE before output writes. C runtime catalog and manual adoption are continuing; native mappings and guest acceptance remain open.
The POSIX ABI now pins LibIPC
61b43723in 1964ab9e. This is part of the Vfsd dependency repair; the existing interfaces are unchanged, and Integration consumer adoption is in progress.8e5a5090replaces the C ABI reaper’s global task lookup with explicit caller-supplied observation handles. It also updates the CI invocation and retains the existing native signal and cleanup requirements. Refs #8.57f715adadds checked wait selectors, wait-status observations and resource-limit metadata, including C records and calling-convention witnesses. These are pure ABI definitions; native wait and limit enforcement remain open. The C probe also consumes the existing authenticated source graph, as tracked in #9.09e9c033adds the shared signal-information and child-observation types, with separate waitpid and full-width information-style status. Optional sender, address and error data preserve absence separately from zero. Existing wire and C layouts remain unchanged; runtime delivery and waiting stay open. The contract and manual update are published.Compatibility 1.26 adds timestamp requests for an original descriptor or counted rooted path. The shared settings preserve signed seconds, and completion remains correlated to the original target and request.
Tracked in file timestamp updates.
Compatibility 1.29 adds Terminal opcode 55 with full-width window values and exact command correlation. ENOTTY is admitted only for that operation; other wire error domains retain their bounds. The C terminal consumer, mediator and manual are published together.
This source is now split into feature PRs, starting at #12 and ending at #73. Each PR links its prerequisite. The complete stack preserves the runtime changes and dependency declarations; obsolete pin checkpoints and documented source-acquisition differences are separated from feature behavior.
Closing this aggregate without merging. The replacement PRs remain WIP for their remaining integration and review.
Pull request closed