WIP: Retain original CALL response loans until settlement #133

Draft
erikinkinen wants to merge 19 commits from feature/native-call-response-loans into feature/native-capability-exclusion
Owner

Keep ordinary CALL response storage owned by the original admitted caller until reply or cancellation. Refuse overlapping publication from the same execution, settle exact caller generations, and preserve independent receiver duties.

Depends on #132; implements part of #11. Source-model controls use real staged actors and managed response backing, but do not establish native private-root input reads or multi-process acceptance.

  • Retain original response loans and settle exact CALL owners.
  • Exercise independent callers, retirement, mapped responses and refused overlap.
  • Pass all eleven original local component gates without compiler warnings.
  • Complete current-head public CI.
  • Complete required native integration acceptance.
Keep ordinary CALL response storage owned by the original admitted caller until reply or cancellation. Refuse overlapping publication from the same execution, settle exact caller generations, and preserve independent receiver duties. Depends on #132; implements part of #11. Source-model controls use real staged actors and managed response backing, but do not establish native private-root input reads or multi-process acceptance. - [x] Retain original response loans and settle exact CALL owners. - [x] Exercise independent callers, retirement, mapped responses and refused overlap. - [x] Pass all eleven original local component gates without compiler warnings. - [x] Complete current-head public CI. - [ ] Complete required native integration acceptance.
erikinkinen added this to the Alpha 1 milestone 2026-11-13 07:02:27 +01:00
Tie borrowed response spans and scheduler waits to actual native admissions.
Cancel their original leases before mapping withdrawal or direct user return,
and reject ordinary zero-wait calls before request publication. Keep the
explicit synchronous kernel-control route separate.

Retain the actual receiving execution and its delivered reply occupation
through completion or retirement. A reused address, another receiver alias or
a later wait cannot supply an earlier invocation's response authority.

(cherry picked from commit 311697701f13a205f5f5b60490f2f707be86bc83)
Keep response admission under cleanup ownership until the actual endpoint row
is published. Earlier failures retire the borrowing, and an absent native
actor cannot return an accepted-buffer retry. Preserve BUSY as pre-admission
backpressure and keep genuine synchronous control results unchanged.

Skip mapping-withdrawal preflight when no actual borrowed span overlaps, so
ordinary frame sealing retains its existing lookup cost and authority checks.

(cherry picked from commit 9456f9347c4c60047d9592680b2206606c6caf2c)
Exercise the actual invocation record transition when a receiver is removed. A positive draining relinquishment consumes the server duty while the native record retains disposal until the original caller acknowledges, without requiring an absence probe.

(cherry picked from commit 68441e7d63e9c384a2dde4e6b60712b431312fca)
Retain receive buffers through their actual native completion and retire writing before return or mapping withdrawal. Keep each receiver’s original reply source until acknowledgment while allowing independent actors and endpoints, and authenticate caller queries through that held source. Preserve empty polling without an unused memory borrow and remove metadata-only production receive block and wake entry points.

(cherry picked from commit e9edce979d638178a5fca262ac17af21b7d5079b)
Retain the complete native access participants together with the original CALL and RECV loans. Preserve exact receiving-occupation retirement and reject registration that would inherit another execution owner; keep the published GDT, TSS and COM1 fixture fixes.
Keep the composed native lifetime guide and kernel introduction within the shared documentation width without changing their contracts.
Compose the completed capability adapter cleanup while preserving all original CALL and RECV ownership modules and native receiver/registration guards. Keep genuine diagnostic callers available in their actual configurations.
Keep the currently consumed receive observation path and actual retirement exclusion witness. Defer the unused borrowed observer API until the retained publication source transition supplies a real caller.
Keep the completed capability prerequisite and its actual test imports while preserving the composed CALL and RECV ownership paths.
test: Exercise native endpoint ownership in legacy controls
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Has been cancelled
bfc920b605
Admit original caller and receiver allocations through real CALL and RECV keys instead of fabricated pending rows. Preserve transfer, retirement and scheduling coverage with independently retained callers, reject overlapping loans and unsupported zero-wait publication, and keep managed reply backing distinct from the host request adapter. These source controls do not replace native address-space activation acceptance.
Author
Owner

Put every malformed syscall control under the existing fixture guard before periodic retirement cleanup. Transport fixtures now retain separate complete pages, so optimizer placement cannot overlap another live registration.

Put every malformed syscall control under the existing fixture guard before periodic retirement cleanup. Transport fixtures now retain separate complete pages, so optimizer placement cannot overlap another live registration.
Take the existing object-universe fixture guard before every direct syscall dispatch, including scalar rejection controls. Dispatch always settles native retirements, so an unguarded rejection must not contend with another test holding lifecycle exclusion in the same modeled universe. Preserve all original invalid arguments and result assertions.
test: Own complete pages for retained native transport fixtures
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 6m43s
46511f033c
Keep each original request, response, receive destination and late reply input in a separate retained aligned allocation. Page-granular registration cannot then overlap another live fixture span because of host optimizer placement. Preserve all original producer calls, payload extents, negative controls and ownership assertions.
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 6m43s
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/native-call-response-loans:feature/native-call-response-loans'
git switch 'feature/native-call-response-loans'

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-capability-exclusion'
git merge --no-ff 'feature/native-call-response-loans'
git switch 'feature/native-call-response-loans'
git rebase 'feature/native-capability-exclusion'
git switch 'feature/native-capability-exclusion'
git merge --ff-only 'feature/native-call-response-loans'
git switch 'feature/native-call-response-loans'
git rebase 'feature/native-capability-exclusion'
git switch 'feature/native-capability-exclusion'
git merge --no-ff 'feature/native-call-response-loans'
git switch 'feature/native-capability-exclusion'
git merge --squash 'feature/native-call-response-loans'
git switch 'feature/native-capability-exclusion'
git merge --ff-only 'feature/native-call-response-loans'
git switch 'feature/native-capability-exclusion'
git merge 'feature/native-call-response-loans'
git push origin 'feature/native-capability-exclusion'
Sign in to join this conversation.
No description provided.