[BUG] External operation cancellation rejects acknowledged route invalidation #13

Closed
opened 2026-09-29 13:27:20 +02:00 by erikinkinen · 0 comments
Owner

Summary

Posixd's external-operation cleanup rejects an acknowledged native Draining(NOT_FOUND) transition as fatal. Route invalidation can legitimately produce that transition, so cancellation can stop with original custody retained instead of completing retirement. This is a source-confirmed reliability defect; no authority escape is claimed.

Reproduction

Arrange an external operation with an outstanding original outbound delivery. Invalidate the original native route before cancellation cleanup. Have RELEASE acknowledge Draining(NOT_FOUND), then inspect the same draining history and retire it. An analogous inbound RELINQUISH transition also reaches the overly narrow external-operation probe. These are deterministic host-fixture inputs to be authored with the correction; no runtime reproduction has been executed under the user's testing waiver.

Expected and actual behavior

Expected: recognize the acknowledged invalidation, retain both original owners while cleanup drains, accept canonical absence only after acknowledgement, and perform no repeated provider operation or client completion. Unknown failures and unacknowledged absence must retain quarantine.

Actual source behavior: external Caller::release accepts only Draining(RETRY), rejects progress with any draining error, and the inbound probe likewise rejects Draining(NOT_FOUND). The kernel preserves NOT_FOUND as the original route-invalidation cause while reporting committed retirement.

Environment and identity

  • Component: Posixd eef5ad1eb1; Integration dbf5d913f8a45d685a6915f8c3d011d418e5b1dc.
  • Profile/image/toolchain: no build or VM executed for this finding.
  • Route: original sealed-client external provider call and original inbound delivery; no newly granted authority.
  • Last known working revision: unknown.

Evidence and prior checks

Compatibility 1.2 carries only an original directory role/selector and requested access bits. Actual sealed CLAIM clients select immutable effective credentials and original directory receipts. Vfsd checks the live metadata-directory operation and inherited namespace/write ceiling before fetching provider evidence. ReadWrite configuration cannot restore native rights. Complete canonical ACL pages preserve object/revision/count/range, order, required bases/masks and mode correspondence before any deny-only result. Partial ACLs, UID zero and combined partial group grants cannot bypass policy. Zero bits still require actual original-provider existence.

Per-query state retains one snapshot and a bounded streaming fold without a fixed ACL-entry limit. Original outbound and inbound owners remain attached through cancellation, result release and one-shot COMPLETE. Acknowledged Draining(NOT_FOUND) preserves route-loss retirement; unknown failures and unexplained absence keep custody. Stream and directory paths share the original caller helper and host fixture.

Final source review flattened the native client refusal condition without changing its requests or expected outcomes. Two additional signed cleanup/adoption commits select the final source; the implemented scope and twenty-four authored controls are unchanged. No tests, builds or CI observation were run.

Twenty-four new host controls and the extended native binding workload are authored and unrun. The native client requires seven directory-existence queries, five configured write refusals and absent-selector refusal before its inherited stream controls. Existing deadlines and resource policy are unchanged. Rustfmt was applied; all changed code remains below 1,000 lines (maximum 900) with inline rustdoc and missing_docs retained. Contracts and manual TeX are updated. Tests, builds, lint checks, rustdoc, VM/manual/profiler runs and CI observation remain deferred by user instruction; no pass, warning-free build or measured speedup is claimed. Generated API exports retain their explicit older source identity until generation resumes.

Native permission enforcement remains open for complete pathname/open/stat/mutation mediation and remaining provider support. Both EriX guest-build generations and rebuilding Rust/LLVM inside EriX remain required and unproved. Phase completion is 16.23% weighted, 4.81% whole-item, with 20/460 parents and 436/896 sub-items complete.

Source review of Posixd external caller release/probe against the kernel invocation caller::release, server::relinquish, teardown::status and route-invalidation lifecycle controls. Those kernel paths preserve the first NOT_FOUND cause while returning a successful native transition. Tests, builds and CI observation remain waived; no passing execution evidence is asserted.

Tracking

Fix alongside directory access, preserving native permission work and phase completion. Author controls for acknowledged NOT_FOUND, intermediate draining progress, final canonical absence, unexpected draining errors and spontaneous absence.

Related records and contracts
Repository Links
posixd issue 13
## Summary Posixd's external-operation cleanup rejects an acknowledged native Draining(NOT_FOUND) transition as fatal. Route invalidation can legitimately produce that transition, so cancellation can stop with original custody retained instead of completing retirement. This is a source-confirmed reliability defect; no authority escape is claimed. ## Reproduction Arrange an external operation with an outstanding original outbound delivery. Invalidate the original native route before cancellation cleanup. Have RELEASE acknowledge Draining(NOT_FOUND), then inspect the same draining history and retire it. An analogous inbound RELINQUISH transition also reaches the overly narrow external-operation probe. These are deterministic host-fixture inputs to be authored with the correction; no runtime reproduction has been executed under the user's testing waiver. ## Expected and actual behavior Expected: recognize the acknowledged invalidation, retain both original owners while cleanup drains, accept canonical absence only after acknowledgement, and perform no repeated provider operation or client completion. Unknown failures and unacknowledged absence must retain quarantine. Actual source behavior: external Caller::release accepts only Draining(RETRY), rejects progress with any draining error, and the inbound probe likewise rejects Draining(NOT_FOUND). The kernel preserves NOT_FOUND as the original route-invalidation cause while reporting committed retirement. ## Environment and identity - Component: Posixd eef5ad1eb1addad7d56e51e5de2da794bdece56f; Integration dbf5d913f8a45d685a6915f8c3d011d418e5b1dc. - Profile/image/toolchain: no build or VM executed for this finding. - Route: original sealed-client external provider call and original inbound delivery; no newly granted authority. - Last known working revision: unknown. ## Evidence and prior checks Compatibility 1.2 carries only an original directory role/selector and requested access bits. Actual sealed CLAIM clients select immutable effective credentials and original directory receipts. Vfsd checks the live metadata-directory operation and inherited namespace/write ceiling before fetching provider evidence. ReadWrite configuration cannot restore native rights. Complete canonical ACL pages preserve object/revision/count/range, order, required bases/masks and mode correspondence before any deny-only result. Partial ACLs, UID zero and combined partial group grants cannot bypass policy. Zero bits still require actual original-provider existence. Per-query state retains one snapshot and a bounded streaming fold without a fixed ACL-entry limit. Original outbound and inbound owners remain attached through cancellation, result release and one-shot COMPLETE. Acknowledged Draining(NOT_FOUND) preserves route-loss retirement; unknown failures and unexplained absence keep custody. Stream and directory paths share the original caller helper and host fixture. Final source review flattened the native client refusal condition without changing its requests or expected outcomes. Two additional signed cleanup/adoption commits select the final source; the implemented scope and twenty-four authored controls are unchanged. No tests, builds or CI observation were run. Twenty-four new host controls and the extended native binding workload are authored and unrun. The native client requires seven directory-existence queries, five configured write refusals and absent-selector refusal before its inherited stream controls. Existing deadlines and resource policy are unchanged. Rustfmt was applied; all changed code remains below 1,000 lines (maximum 900) with inline rustdoc and missing_docs retained. Contracts and manual TeX are updated. Tests, builds, lint checks, rustdoc, VM/manual/profiler runs and CI observation remain deferred by user instruction; no pass, warning-free build or measured speedup is claimed. Generated API exports retain their explicit older source identity until generation resumes. [Native permission enforcement](https://git.erikinkinen.fi/erix/posixd/issues/10) remains open for complete pathname/open/stat/mutation mediation and remaining provider support. Both EriX guest-build generations and rebuilding Rust/LLVM inside EriX remain required and unproved. [Phase completion](https://git.erikinkinen.fi/erix/integration/issues/65) is **16.23% weighted**, **4.81% whole-item**, with **20/460 parents** and **436/896 sub-items** complete. Source review of Posixd external caller release/probe against the kernel invocation caller::release, server::relinquish, teardown::status and route-invalidation lifecycle controls. Those kernel paths preserve the first NOT_FOUND cause while returning a successful native transition. Tests, builds and CI observation remain waived; no passing execution evidence is asserted. ## Tracking Fix alongside [directory access](https://git.erikinkinen.fi/erix/posixd/issues/12), preserving [native permission work](https://git.erikinkinen.fi/erix/posixd/issues/10) and [phase completion](https://git.erikinkinen.fi/erix/integration/issues/65). Author controls for acknowledged NOT_FOUND, intermediate draining progress, final canonical absence, unexpected draining errors and spontaneous absence. <details> <summary>Related records and contracts</summary> | Repository | Links | | --- | --- | | posixd | [issue 13](https://git.erikinkinen.fi/erix/posixd/issues/13) | </details>
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:35:05 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/posixd#13
No description provided.