WIP: fix: Retain original source writer inputs #649

Draft
erikinkinen wants to merge 0 commits from fix/source-bundle-original-custody into feature/complete-source-input-catalog
Owner

Summary and rationale

Retain source-writer input captures independently of mutable lists and current participant fields. Copies cannot enter the original writer's operation, and interrupted writes keep their original cleanup duties.

Tracking and scope

Supports #643 and #644.

  • Independent original source, Cargo and object-input capture journals.
  • Original-only cleanup after interruption or participant replacement.
  • Live completed-admission access through the defining materialization receiver.
  • Borrow original object descriptors for directory writes and synchronization.

Architecture, authority and failure behavior

Register actual capturers before acquisition and retain their original roster through teardown. Completion comes from the fixed materialization body, not result flags or serialized descriptions. Preserve the original failure and independent cleanup errors. This supplies the writer boundary for the source archive; complete source and native acceptance remain with #644 and #628.

Validation evidence

The frozen source passes 63 controls, including actual file-descriptor custody, complete existing source-bundle regressions, generated-input checks, genuine original Git/Cargo export, input-runner bindings and syntax. Caller and descendant cleanup is positive. Markdown checks pass for 192 files. All 357 helpers and three runner bindings are renewed; the seven-file native interface is unchanged.

Exact-head CI is pending. Rust formatting and Clippy do not apply to these Python changes; no guest behavior changes.

Review checklist

  • Signed commits, inline documentation and code below 1,000 lines.
  • CI coverage and architecture/design documentation updated.
  • Compose with the latest source producer and renew the combined helper cohort.
## Summary and rationale Retain source-writer input captures independently of mutable lists and current participant fields. Copies cannot enter the original writer's operation, and interrupted writes keep their original cleanup duties. ## Tracking and scope Supports #643 and #644. - [x] Independent original source, Cargo and object-input capture journals. - [x] Original-only cleanup after interruption or participant replacement. - [x] Live completed-admission access through the defining materialization receiver. - [x] Borrow original object descriptors for directory writes and synchronization. ## Architecture, authority and failure behavior Register actual capturers before acquisition and retain their original roster through teardown. Completion comes from the fixed materialization body, not result flags or serialized descriptions. Preserve the original failure and independent cleanup errors. This supplies the writer boundary for the source archive; complete source and native acceptance remain with #644 and #628. ## Validation evidence The frozen source passes 63 controls, including actual file-descriptor custody, complete existing source-bundle regressions, generated-input checks, genuine original Git/Cargo export, input-runner bindings and syntax. Caller and descendant cleanup is positive. Markdown checks pass for 192 files. All 357 helpers and three runner bindings are renewed; the seven-file native interface is unchanged. Exact-head CI is pending. Rust formatting and Clippy do not apply to these Python changes; no guest behavior changes. ## Review checklist - [x] Signed commits, inline documentation and code below 1,000 lines. - [x] CI coverage and architecture/design documentation updated. - [x] Compose with the latest source producer and renew the combined helper cohort.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 04:39:54 +01:00
Keep independent capture journals before acquisition so copied writers, replaced participants and erased public lists cannot trigger or redirect original resource effects. Retain the actual completed materialization receiver for archive consumers and borrow original object descriptors during writes.
Select the full transitive source implementation and independent capture journals from the immutable original code revision.
build: Bind input runners to original source writer custody
Some checks failed
Markdown / markdown (push) Successful in 20s
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
CI / rust (push) Failing after 3m2s
CI / native_sources (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m50s
7a29bffe9c
Keep all maintained source runners on the same complete original-custody implementation and declaration.
Some checks failed
Markdown / markdown (push) Successful in 20s
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
CI / rust (push) Failing after 3m2s
CI / native_sources (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m50s
This pull request has changes conflicting with the target branch.
  • scripts/check-python-host-syntax.sh
  • scripts/dynlink_c_runtime.py
  • scripts/native_input_owner_cohort.py
  • scripts/run-owned-input.py
  • tests/fixtures/python-host-syntax-commands.json
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 'fix/source-bundle-original-custody:fix/source-bundle-original-custody'
git switch 'fix/source-bundle-original-custody'

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/complete-source-input-catalog'
git merge --no-ff 'fix/source-bundle-original-custody'
git switch 'fix/source-bundle-original-custody'
git rebase 'feature/complete-source-input-catalog'
git switch 'feature/complete-source-input-catalog'
git merge --ff-only 'fix/source-bundle-original-custody'
git switch 'fix/source-bundle-original-custody'
git rebase 'feature/complete-source-input-catalog'
git switch 'feature/complete-source-input-catalog'
git merge --no-ff 'fix/source-bundle-original-custody'
git switch 'feature/complete-source-input-catalog'
git merge --squash 'fix/source-bundle-original-custody'
git switch 'feature/complete-source-input-catalog'
git merge --ff-only 'fix/source-bundle-original-custody'
git switch 'feature/complete-source-input-catalog'
git merge 'fix/source-bundle-original-custody'
git push origin 'feature/complete-source-input-catalog'
Sign in to join this conversation.
No description provided.