WIP: Serve original PTY readiness and terminal streams #3
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/ttyd!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
Serve original PTY readiness requests independently of legacy reads and writes. Pending input waits no longer need repeated readiness queries: actual stream mutations notify their original counted owners. Multiple requests with equal public IDs remain independent, and a long wait does not occupy the ordinary I/O route needed to make progress.
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
Both bootstrap and dynamic session creation register actual private PTY input/output receivers before exporting SEND aliases, retaining rollback inventory on failure. Lifecycle routes acquire no stream intake. Each readiness key captures the original session generation, PTY generation, receiver and direction; replacements cannot inherit observation. Existing stream capabilities remain the sole authority. No notification capability, Time grant, retained caller byte pointer or ambient provider lookup is introduced.
The provider consumes coalesced actual byte-state changes and derives readiness from occupancy, capacity and lifecycle. Native activity and known local progress gate original custody inspection. Unchanged waits issue no status RPC, CLAIM or RELINQUISH. Existing UART and legacy runtime scheduling remains in place; this change does not claim complete service quiescence. Original cancellation is independent of PTY closure; immutable results remain retained through refusal or uncertainty. Unknown native ownership requires process teardown, with a terminal trap if the exit syscall unexpectedly returns.
Signed image metadata describes exact original waiter rows after the existing core arena. Runtime validates compiler geometry, alignment and checked native extent before initialization. The producer requires an explicit waiter count and pristine version-2 descriptor and keeps the terminal stack above the expanded arena. Zero deliberately refuses deferred waits; padding adds no capacity.
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-29 16:08:06 +02:00
erikinkinen referenced this pull request from erix/integration2026-09-29 16:09:51 +02:00
erikinkinen referenced this pull request from erix/launchd2026-09-29 16:10:00 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-09-29 16:10:07 +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/vfsd2026-09-29 16:10:52 +02:00
erikinkinen referenced this pull request from erix/posixd2026-09-30 20:08:32 +02:00
erikinkinen referenced this pull request from erix/coreutils2026-09-30 20:09:28 +02:00
erikinkinen referenced this pull request from erix/docs2026-09-30 20:09:47 +02:00
erikinkinen referenced this pull request from erix/e2fsd2026-09-30 20:09:57 +02:00
erikinkinen referenced this pull request from erix/exsh2026-09-30 20:09:59 +02:00
erikinkinen referenced this pull request from erix/extop2026-09-30 20:10:01 +02:00
erikinkinen referenced this pull request from erix/fatd2026-09-30 20:10:02 +02:00
erikinkinen referenced this pull request from erix/integration2026-09-30 20:10:05 +02:00
erikinkinen referenced this pull request from erix/launchd2026-09-30 20:10:10 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-09-30 20:10:14 +02:00
erikinkinen referenced this pull request from erix/lib-posixabi2026-09-30 20:10:16 +02:00
erikinkinen referenced this pull request from erix/loaderd2026-09-30 20:10:21 +02:00
erikinkinen referenced this pull request from erix/posixd2026-09-30 20:10:24 +02:00
erikinkinen referenced this pull request from erix/procd2026-09-30 20:10:26 +02:00
erikinkinen referenced this pull request from erix/ramfsd2026-09-30 20:10:27 +02:00
erikinkinen referenced this pull request from erix/rootd2026-09-30 20:10:28 +02:00
erikinkinen referenced this pull request from erix/timed2026-09-30 20:10:29 +02:00
erikinkinen referenced this pull request from erix/vfsd2026-09-30 20:10:30 +02:00
erikinkinen referenced this pull request from erix/vfsd2026-10-01 21:15:17 +02:00
erikinkinen referenced this pull request from erix/vfsd2026-10-01 21:15:20 +02:00
erikinkinen referenced this pull request from erix/docs2026-10-01 21:15:20 +02:00
erikinkinen referenced this pull request from erix/integration2026-10-01 21:15:21 +02:00
erikinkinen referenced this pull request from erix/posixd2026-10-01 21:15:22 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-10-01 21:15:22 +02:00
erikinkinen referenced this pull request from erix/ramfsd2026-10-01 21:15:23 +02:00
erikinkinen referenced this pull request from erix/e2fsd2026-10-01 21:15:23 +02:00
erikinkinen referenced this pull request from erix/fatd2026-10-01 21:15: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 14:23:54 +02:00
erikinkinen referenced this pull request from erix/integration2026-10-02 14:24:06 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-10-02 14:24:16 +02:00
erikinkinen referenced this pull request from erix/posixd2026-10-02 14:24:24 +02:00
WIP: Align signed runtime dependenciesto WIP: Serve original PTY readiness and terminal streams6109bec2 preserves the active runtime phase for ordinary failures as well as panics. Readiness and serial input now have distinct codes; explicit transaction errors and teardown keep their existing behavior. This makes the next process-exit trace useful for diagnosing Integration #125.
56f9cdf2 preserves the actual panic location or full timestamp error in the existing exit status. This should distinguish the next initial-shell failure without adding a logging capability. The cause in Integration #125 remains open.
TTYd 17477bf6 adds hosted coverage for two bootstrap sessions with separate clock observations, routes and metadata. A refused second receiver must preserve the first live session and leave the unpublished slots reusable. The guest startup failure remains open in Integration #125.
Added restricted terminal-control views tied to original byte streams. Explicit boot policy provisions the dedicated route, and delegated operation rights survive aliases without widening byte-only loans. The C/Rust adapters and complete termios behavior remain open.
The source changes are now split into #6, #7, #8, #9, #10, #11, #12, #13, #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.
Closing this aggregate PR unmerged as superseded. The replacement PRs preserve the implementation and the additional retained peer-flow implementation, with an obsolete dependency-pin status paragraph removed. Provider mapping and integrated acceptance remain open in the WIP PRs. The original branch is retained for recovery and existing source references.
Pull request closed