WIP: Retain directory borrows through census enumeration #753

Draft
erikinkinen wants to merge 5 commits from perf/census-directory-borrows into feature/native-scripted-root-build
Owner

Keep one original child-descriptor borrow across the directory identity read, parent-edge proof and enumeration. This removes repeated admission and mask restoration while retaining the same kernel witness and complete traversal postproof. Capture and retirement remain separate duties.

A focused profile records eight fewer descriptor-use intervals and 1,592 fewer function calls across two four-directory censuses. The single timing samples do not establish an elapsed-time improvement.

Depends on #690.

  • Keep original descriptor and parent-edge checks around the fixed metadata interval.
  • Preserve substitution, failure and retirement behavior.
  • Document the retained borrow lifetime.
  • Complete current-head CI.
Keep one original child-descriptor borrow across the directory identity read, parent-edge proof and enumeration. This removes repeated admission and mask restoration while retaining the same kernel witness and complete traversal postproof. Capture and retirement remain separate duties. A focused profile records eight fewer descriptor-use intervals and 1,592 fewer function calls across two four-directory censuses. The single timing samples do not establish an elapsed-time improvement. Depends on #690. - [x] Keep original descriptor and parent-edge checks around the fixed metadata interval. - [x] Preserve substitution, failure and retirement behavior. - [x] Document the retained borrow lifetime. - [ ] Complete current-head CI.
Keep the original child descriptor use active across the fixed parent-edge proof and listdir. This removes a repeated admission and restoration while preserving original kernel witnesses and full namespace checks.
Select the complete original supervisor closure from the census source composition.
build: Bind census borrow supervisor sources
Some checks failed
Markdown / markdown (push) Successful in 22s
CI / native_sources (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
CI / rust (push) Has been cancelled
CI / cargo_publications (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
1b4c4014d4
Bind the original bootstrap and declaration to the complete selected source commits.
docs: Explain census descriptor borrow lifetime
Some checks failed
Markdown / markdown (push) Successful in 23s
CI / cargo_publications (pull_request) Has been skipped
CI / rust (pull_request) Has been skipped
CI / native_sources (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m13s
CI / rust (push) Failing after 6m22s
CI / native_sources (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
CI / cargo_publications (push) Has been cancelled
f6431f3a34
Document the fixed metadata extent and the independent capture, retirement and complete traversal duties.
erikinkinen added this to the Alpha 1 milestone 2026-11-11 22:43:11 +01:00
test: Resolve custody modules during direct CI execution
Some checks failed
CI / cargo_publications (pull_request) Has been skipped
CI / rust (pull_request) Has been skipped
CI / native_sources (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Markdown / markdown (push) Successful in 18s
Coreutils provider graph / coreutils (push) Failing after 3m11s
CI / cargo_publications (push) Failing after 11m29s
CI / rust (push) Failing after 11m41s
CI / native_sources (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
7e52de479d
Use the actual scripts directory only during the shared custody imports and restore the prior search path before source-bank controls.

(cherry picked from commit 266a6355bf)
Some checks failed
CI / cargo_publications (pull_request) Has been skipped
CI / rust (pull_request) Has been skipped
CI / native_sources (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Markdown / markdown (push) Successful in 18s
Coreutils provider graph / coreutils (push) Failing after 3m11s
CI / cargo_publications (push) Failing after 11m29s
CI / rust (push) Failing after 11m41s
CI / native_sources (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
This pull request has changes conflicting with the target branch.
  • docs/retained-primary-native-artifacts.md
  • scripts/dynlink_c_runtime.py
  • scripts/native_input_owner_cohort.py
  • scripts/run-owned-input.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

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/native-scripted-root-build'
git merge --no-ff 'perf/census-directory-borrows'
git switch 'perf/census-directory-borrows'
git rebase 'feature/native-scripted-root-build'
git switch 'feature/native-scripted-root-build'
git merge --ff-only 'perf/census-directory-borrows'
git switch 'perf/census-directory-borrows'
git rebase 'feature/native-scripted-root-build'
git switch 'feature/native-scripted-root-build'
git merge --no-ff 'perf/census-directory-borrows'
git switch 'feature/native-scripted-root-build'
git merge --squash 'perf/census-directory-borrows'
git switch 'feature/native-scripted-root-build'
git merge --ff-only 'perf/census-directory-borrows'
git switch 'feature/native-scripted-root-build'
git merge 'perf/census-directory-borrows'
git push origin 'feature/native-scripted-root-build'
Sign in to join this conversation.
No description provided.