[BUG] Zero-descriptor client provisioning cannot retire its receiver source #11

Closed
opened 2026-09-29 06:52:41 +02:00 by erikinkinen · 0 comments
Owner

Summary

A private client with a valid empty descriptor table cannot commit startup. Receiver-source disposal occurs only during descriptor append, while commit always requires it to have happened. This creates an unintended requirement to include at least one descriptor. The defect is identified by source audit; no runtime reproduction is claimed.

Reproduction

Provision an original private mediator with one client, D=0 and A=0 (or directory-only authorities). Begin the exact client startup with descriptor_count=0, collect and retire the original native Begin caller, then CommitClientProvision with the SHA-256 digest of its complete 160-byte RCS1 header. There is no Append operation for an empty table.

Expected and actual behavior

Expected: the authenticated commit following original Begin caller retirement supplies the receiver-source handoff barrier. Drop and independently query absence of that original source before configuring startup, installing the guarded ingress and consuming the install grant. Disposal uncertainty must retain all original owners and block commit.

Actual source behavior: commit returns IPC_RESULT_DENIED because receiver_source_absent is false, and no valid empty-table operation can set it. Adding a dummy descriptor would widen the requested contract and is not an acceptable workaround.

Environment and identity

  • Component: Procd 0cba9468.
  • Graph: Integration counted binding sources.
  • Configuration: one private client with a zero-length descriptor table; original authenticated Launchd/Loaderd process relation and install-grant custody.
  • Target: x86_64 EriX. No image, firmware, hardware or toolchain execution is asserted.
  • Last known working empty-table commit revision: not established.

Evidence and prior checks

Failed DROP/QUERY retains the original source obligation, grant and sender; no dummy descriptor or authority is added.

Provisioning source retires the source only in append, while commit checks the flag unconditionally. Startup codecs and count admission permit zero descriptors. Author complete empty/directory-only start and seal controls plus DROP/QUERY failure controls retaining the original grant and sender. Tests, builds and CI observation are deferred by user instruction.

Tracking

Realm design, Procd review, external descriptor gate regression, Phase 6 completion. Implementation acceptance uses the testing waiver and must not be described as a passing test.

## Summary A private client with a valid empty descriptor table cannot commit startup. Receiver-source disposal occurs only during descriptor append, while commit always requires it to have happened. This creates an unintended requirement to include at least one descriptor. The defect is identified by source audit; no runtime reproduction is claimed. ## Reproduction Provision an original private mediator with one client, D=0 and A=0 (or directory-only authorities). Begin the exact client startup with descriptor_count=0, collect and retire the original native Begin caller, then CommitClientProvision with the SHA-256 digest of its complete 160-byte RCS1 header. There is no Append operation for an empty table. ## Expected and actual behavior Expected: the authenticated commit following original Begin caller retirement supplies the receiver-source handoff barrier. Drop and independently query absence of that original source before configuring startup, installing the guarded ingress and consuming the install grant. Disposal uncertainty must retain all original owners and block commit. Actual source behavior: commit returns IPC_RESULT_DENIED because receiver_source_absent is false, and no valid empty-table operation can set it. Adding a dummy descriptor would widen the requested contract and is not an acceptable workaround. ## Environment and identity - Component: [Procd 0cba9468](https://git.erikinkinen.fi/erix/procd/commit/0cba946805f12280a387b6d4c8ff9920bcdea3c8). - Graph: [Integration counted binding sources](https://git.erikinkinen.fi/erix/integration/commit/7f1e4956ed21dbaec68593989e7a129fa0af62be). - Configuration: one private client with a zero-length descriptor table; original authenticated Launchd/Loaderd process relation and install-grant custody. - Target: x86_64 EriX. No image, firmware, hardware or toolchain execution is asserted. - Last known working empty-table commit revision: not established. ## Evidence and prior checks Failed DROP/QUERY retains the original source obligation, grant and sender; no dummy descriptor or authority is added. [Provisioning source](https://git.erikinkinen.fi/erix/procd/src/commit/0cba946805f12280a387b6d4c8ff9920bcdea3c8/src/runtime_realm_client_provision.rs) retires the source only in append, while commit checks the flag unconditionally. Startup codecs and count admission permit zero descriptors. Author complete empty/directory-only start and seal controls plus DROP/QUERY failure controls retaining the original grant and sender. Tests, builds and CI observation are deferred by user instruction. ## Tracking [Realm design](https://git.erikinkinen.fi/erix/posixd/issues/1), [Procd review](https://git.erikinkinen.fi/erix/procd/pulls/2), [external descriptor gate regression](https://git.erikinkinen.fi/erix/procd/issues/10), [Phase 6 completion](https://git.erikinkinen.fi/erix/integration/issues/65). Implementation acceptance uses the testing waiver and must not be described as a passing test.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:35:10 +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/procd#11
No description provided.