WIP: perf: Bind offline context copies to original output parents #743

Draft
erikinkinen wants to merge 7 commits from perf/offline-context-output-batch into test/efi-source-bundle-selection
Owner

Offline Git context copies repeatedly traverse protected trees for each input store. Bind role and mirror copies to the original graph-owned output parents and share one complete namespace PRE/POST per child while keeping the original object union, byte and descriptor checks.

Tracks #65; depends on #737. The source-owner constructor selects the batch once. Each child is registered before construction, and its context remains private until POST succeeds. Protected routes include all admitted inputs, evidence and previously selected source, context and mirror namespaces. Negative overlap observations grant no write authority.

An independent journal retains actual input borrows, observers and partial native acquisitions, so removing a presentation-list entry cannot hide cleanup. Failures preserve the original cause, attempt independent POST and block later children. Original graph, source and caller budgets remain unchanged.

  • Implement original-parent binding, complete protected namespace bookends and original acquisition cleanup.
  • Add role/mirror, partial-copy, failed-POST, unreturned-borrow, roster-loss and reentrant publication controls.
  • Renew the complete helper source/declaration binding; pure guards pass.
  • Run the actual role/mirror and failure controls on the immutable source.
  • Complete the original EFI chain and composed CI acceptance.

No EFI image or guest acceptance is claimed. This changes Python orchestration and its design documentation; Rust interfaces and manual APIs are unchanged.

Offline Git context copies repeatedly traverse protected trees for each input store. Bind role and mirror copies to the original graph-owned output parents and share one complete namespace PRE/POST per child while keeping the original object union, byte and descriptor checks. Tracks #65; depends on #737. The source-owner constructor selects the batch once. Each child is registered before construction, and its context remains private until POST succeeds. Protected routes include all admitted inputs, evidence and previously selected source, context and mirror namespaces. Negative overlap observations grant no write authority. An independent journal retains actual input borrows, observers and partial native acquisitions, so removing a presentation-list entry cannot hide cleanup. Failures preserve the original cause, attempt independent POST and block later children. Original graph, source and caller budgets remain unchanged. - [x] Implement original-parent binding, complete protected namespace bookends and original acquisition cleanup. - [x] Add role/mirror, partial-copy, failed-POST, unreturned-borrow, roster-loss and reentrant publication controls. - [x] Renew the complete helper source/declaration binding; pure guards pass. - [ ] Run the actual role/mirror and failure controls on the immutable source. - [ ] Complete the original EFI chain and composed CI acceptance. No EFI image or guest acceptance is claimed. This changes Python orchestration and its design documentation; Rust interfaces and manual APIs are unchanged.
erikinkinen added this to the Alpha 1 milestone 2026-11-11 19:01:50 +01:00
Register graph-owned context and mirror children before construction, retaining their actual parent capturers and complete protected namespace PRE and POST. Keep object union and byte checks intact while avoiding a separate protected-tree traversal for each input store.

Retain original input acquisitions independently of presentation lists, including partial and unreturned borrows. Seal their native records before publishing a context and drain the actual original enrollments on every failure path.
Bind the complete maintained helper set to the signed context-output implementation so source admission checks the same original source revision and module inventory.
build: Bind offline context execution to its original declaration
Some checks failed
Markdown / markdown (push) Failing after 12s
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 4m29s
CI / rust (push) Failing after 7m36s
CI / native_sources (push) Has been skipped
CI / cargo_publications (push) Failing after 8m4s
CI / host_zero (push) Has been skipped
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
CI / host_one (push) Has been skipped
c942e70e95
Require the renewed source and input-owner declaration together at the maintained owned-input entry point. This preserves exact cohort admission for the new context acquisition and cleanup modules.
Keep the original child and birth together in the ordered registrations and path index. Require exact same-parent coverage before ordinary operations, and drain the safely witnessed union on cleanup when either roster loses a row.

Reject foreign or replaced child births before closing their preparation. Preserve the original failure and uncertainty while continuing to retire every safely registered local child and observer.
Bind the complete helper inventory to the child-roster ownership repair so both original witnesses and the actual failure controls are admitted from the same source revision.
build: Bind context child execution to its renewed declaration
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) Failing after 18s
Coreutils provider graph / coreutils (push) Successful in 5m46s
CI / rust (push) Failing after 7m52s
CI / native_sources (push) Has been skipped
CI / cargo_publications (push) Failing after 8m11s
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
050f3ef5d1
Require the repaired source and complete original input-owner declaration together at the owned-input entry point.
ci: Select external storage for input diagnostics
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
Coreutils provider graph / coreutils (push) Failing after 2m23s
Markdown / markdown (push) Failing after 34s
CI / cargo_publications (push) Failing after 9m11s
CI / rust (push) Successful in 17m22s
CI / native_sources (push) Failing after 2m42s
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / integration (push) Has been skipped
a2078337c8
Provide the runner temporary directory to the owned-input diagnostic step so its retained fixture data stays outside the source checkout.

(cherry picked from commit 4581a707a3)
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
Coreutils provider graph / coreutils (push) Failing after 2m23s
Markdown / markdown (push) Failing after 34s
CI / cargo_publications (push) Failing after 9m11s
CI / rust (push) Successful in 17m22s
CI / native_sources (push) Failing after 2m42s
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / integration (push) Has been skipped
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'perf/offline-context-output-batch:perf/offline-context-output-batch'
git switch 'perf/offline-context-output-batch'

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 'test/efi-source-bundle-selection'
git merge --no-ff 'perf/offline-context-output-batch'
git switch 'perf/offline-context-output-batch'
git rebase 'test/efi-source-bundle-selection'
git switch 'test/efi-source-bundle-selection'
git merge --ff-only 'perf/offline-context-output-batch'
git switch 'perf/offline-context-output-batch'
git rebase 'test/efi-source-bundle-selection'
git switch 'test/efi-source-bundle-selection'
git merge --no-ff 'perf/offline-context-output-batch'
git switch 'test/efi-source-bundle-selection'
git merge --squash 'perf/offline-context-output-batch'
git switch 'test/efi-source-bundle-selection'
git merge --ff-only 'perf/offline-context-output-batch'
git switch 'test/efi-source-bundle-selection'
git merge 'perf/offline-context-output-batch'
git push origin 'test/efi-source-bundle-selection'
Sign in to join this conversation.
No description provided.