WIP: feat(directory): Own generation-bound C and Rust streams #83

Draft
erikinkinen wants to merge 8 commits from feature/owned-directory-streams into feature/ordinary-startup-owner-cohort
Owner

Add independent caller-owned directory streams with counted entry buffers, shared original cursors and generation-qualified close. Rust streams retain their actual runtime; the extended namespaced C interface uses opaque caller storage. External close or replacement makes the stream stale without touching a replacement descriptor. Unreturned callbacks retain their active phase and cannot be retried.

Implements #82; depends on #80 and LibPosixABI #82.

  • Implement C/Rust stream ownership, entry lifetime, EOF/error and cursor adapters.
  • Define close uncertainty and stale/reuse refusal.
  • Enroll matching mediator and native directory workload.

This branch also includes the completed downstream features from #84.

Add independent caller-owned directory streams with counted entry buffers, shared original cursors and generation-qualified close. Rust streams retain their actual runtime; the extended namespaced C interface uses opaque caller storage. External close or replacement makes the stream stale without touching a replacement descriptor. Unreturned callbacks retain their active phase and cannot be retried. Implements [#82](https://git.erikinkinen.fi/erix/lib-cstd/issues/82); depends on [#80](https://git.erikinkinen.fi/erix/lib-cstd/pulls/80) and [LibPosixABI #82](https://git.erikinkinen.fi/erix/lib-posixabi/pulls/82). - [x] Implement C/Rust stream ownership, entry lifetime, EOF/error and cursor adapters. - [x] Define close uncertainty and stale/reuse refusal. - [ ] Enroll matching mediator and native directory workload. This branch also includes the completed downstream features from #84.
erikinkinen added this to the Alpha 1 milestone 2026-11-07 19:27:35 +01:00
feat(directory): own generation-bound C and Rust streams
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 11s
CI / thread (push) Successful in 2m17s
CI / memory (push) Failing after 4m21s
7ec854af2c
test(directory): exercise fail-stop after unreturned callbacks
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / thread (push) Successful in 2m15s
CI / memory (push) Failing after 4m36s
835e53e617
ci: Select the directory stream runtime companion
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / thread (push) Successful in 2m20s
CI / memory (push) Has been cancelled
5c2b2353cb
fix: Select the complete native caller and failure-note cohort
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 7s
CI / thread (push) Successful in 2m17s
CI / memory (push) Has been cancelled
dba0cbee50
Keep the original runtime supplier aligned with its reviewed Integration command owner, including pure first-failure notes. Ordinary native C calls must remain independent of optional executable and signing-key modules while retaining the exact source, clock and cleanup checks.
Keep intentional Linux SIGILL controls from publishing uncontrolled core output. Change only each declared crash child, assert its actual limit and dumpability policy, and preserve the parent signal and generated-source closure requirements.

(cherry picked from commit d46538f25f)
(cherry picked from commit 1ee3b7b1c7)
docs: Wrap the runtime owner description
Some checks failed
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / thread (push) Successful in 1m37s
CI / markdown (push) Successful in 26s
CI / memory (push) Failing after 11m17s
f7cd14f17a
Keep the selected owner and failure-note descriptions within the shared Markdown line limit.
test: Include retained failure notes in the owner roster
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / thread (push) Successful in 1m10s
CI / memory (push) Successful in 9m32s
93009b8e61
Keep the independent exact-roster assertion aligned with the selected command owner, which now retains the failure-note helper. Preserve all source-custody and refusal checks.
feat: Merge select the complete native caller and failure-note cohort
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / thread (push) Successful in 1m6s
CI / markdown (push) Successful in 3s
CI / memory (push) Successful in 9m11s
2d880032af
Select the complete native caller and failure-note cohort. Integrate the reviewed feature into feature/owned-directory-streams while the upstream work retains its own completion requirements.

#84
Author
Owner

Merged the approved downstream work from #84. The upstream PR retains its own remaining scope and completion requirements.

Merged the approved downstream work from #84. The upstream PR retains its own remaining scope and completion requirements.
All checks were successful
CI / memory (pull_request) Has been skipped
CI / thread (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / thread (push) Successful in 1m6s
CI / markdown (push) Successful in 3s
CI / memory (push) Successful in 9m11s
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/owned-directory-streams:feature/owned-directory-streams'
git switch 'feature/owned-directory-streams'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'feature/ordinary-startup-owner-cohort'
git merge --no-ff 'feature/owned-directory-streams'
git switch 'feature/owned-directory-streams'
git rebase 'feature/ordinary-startup-owner-cohort'
git switch 'feature/ordinary-startup-owner-cohort'
git merge --ff-only 'feature/owned-directory-streams'
git switch 'feature/owned-directory-streams'
git rebase 'feature/ordinary-startup-owner-cohort'
git switch 'feature/ordinary-startup-owner-cohort'
git merge --no-ff 'feature/owned-directory-streams'
git switch 'feature/ordinary-startup-owner-cohort'
git merge --squash 'feature/owned-directory-streams'
git switch 'feature/ordinary-startup-owner-cohort'
git merge --ff-only 'feature/owned-directory-streams'
git switch 'feature/ordinary-startup-owner-cohort'
git merge 'feature/owned-directory-streams'
git push origin 'feature/ordinary-startup-owner-cohort'
Sign in to join this conversation.
No description provided.