[BUG] Realm start and seal reject provisioned external stream descriptors #10

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

Summary

The private realm start/seal client-set gate rejects valid counted external stream descriptors. Provisioning already permits internal and external descriptors, but the later aggregate comparison still requires the internal count alone. This is an availability regression identified by source audit; runtime reproduction has not been executed.

Reproduction

Select a realm with two clients, four internal descriptors and sixteen external sources, including one inherited stream per client. Provision each client with its two internal descriptors and one external Write descriptor through the authenticated private producer route, then request private mediator start and seal. The existing gate totals six startup descriptors and compares that with four internal descriptors.

The authored binding scenario selects this case. A smaller control uses one client with zero internal descriptors and three external streams. No frequency, clean-image result or actual error log is claimed because testing is deferred.

Expected and actual behavior

Expected: retain exact original clients, mediator/controller/realm generations, plan digest, provisioned phase and receiver-source disposal, while admitting the aggregate descriptor envelope from internal descriptors through internal plus external authority count. Only authenticated Launchd derives the exact stream subset from the frozen typed plan; directory bindings do not become descriptors.

Actual source behavior: validate_realm_client_set returns IPC_RESULT_DENIED whenever the aggregate differs from the internal descriptor count, before submitting the original private start or seal operation. Directory-only and zero-authority plans retain their existing exact count.

Environment and identity

  • Component: Procd 0cba9468; Integration selected graph.
  • Configuration: authored counted binding scenario, two realms, four clients, 32 external sources and 2640 canonical plan bytes. No new image was built.
  • Target: x86_64 EriX; no hardware, firmware or toolchain execution is asserted.
  • Route: original authenticated Launchd producer and retained private mediator/client relation; no additional grant is required.
  • Last known working external-stream start/seal revision: not established.

Evidence and prior checks

Source comparison: provisioning ceiling accepts D+A, while client-set gate requires D. Existing external-only controls stop at client provisioning. Add end-to-end private start/seal admission coverage plus below-floor, above-ceiling and unchanged exact-zero-authority controls. Tests, builds and CI observation remain deferred by user instruction.

Tracking

Realm design, Procd review, Integration review, Phase 6 completion. No workaround or completed runtime acceptance is claimed.

## Summary The private realm start/seal client-set gate rejects valid counted external stream descriptors. Provisioning already permits internal and external descriptors, but the later aggregate comparison still requires the internal count alone. This is an availability regression identified by source audit; runtime reproduction has not been executed. ## Reproduction Select a realm with two clients, four internal descriptors and sixteen external sources, including one inherited stream per client. Provision each client with its two internal descriptors and one external Write descriptor through the authenticated private producer route, then request private mediator start and seal. The existing gate totals six startup descriptors and compares that with four internal descriptors. The authored [binding scenario](https://git.erikinkinen.fi/erix/integration/src/commit/7f1e4956ed21dbaec68593989e7a129fa0af62be/tests/scenarios/appliance-disk-image-realm-bindings-positive.toml) selects this case. A smaller control uses one client with zero internal descriptors and three external streams. No frequency, clean-image result or actual error log is claimed because testing is deferred. ## Expected and actual behavior Expected: retain exact original clients, mediator/controller/realm generations, plan digest, provisioned phase and receiver-source disposal, while admitting the aggregate descriptor envelope from internal descriptors through internal plus external authority count. Only authenticated Launchd derives the exact stream subset from the frozen typed plan; directory bindings do not become descriptors. Actual source behavior: `validate_realm_client_set` returns `IPC_RESULT_DENIED` whenever the aggregate differs from the internal descriptor count, before submitting the original private start or seal operation. Directory-only and zero-authority plans retain their existing exact count. ## Environment and identity - Component: [Procd 0cba9468](https://git.erikinkinen.fi/erix/procd/commit/0cba946805f12280a387b6d4c8ff9920bcdea3c8); [Integration selected graph](https://git.erikinkinen.fi/erix/integration/commit/7f1e4956ed21dbaec68593989e7a129fa0af62be). - Configuration: authored counted binding scenario, two realms, four clients, 32 external sources and 2640 canonical plan bytes. No new image was built. - Target: x86_64 EriX; no hardware, firmware or toolchain execution is asserted. - Route: original authenticated Launchd producer and retained private mediator/client relation; no additional grant is required. - Last known working external-stream start/seal revision: not established. ## Evidence and prior checks Source comparison: [provisioning ceiling](https://git.erikinkinen.fi/erix/procd/src/commit/0cba946805f12280a387b6d4c8ff9920bcdea3c8/src/runtime_realm_client_provision.rs) accepts D+A, while [client-set gate](https://git.erikinkinen.fi/erix/procd/src/commit/0cba946805f12280a387b6d4c8ff9920bcdea3c8/src/runtime_realm_seal.rs) requires D. Existing external-only controls stop at client provisioning. Add end-to-end private start/seal admission coverage plus below-floor, above-ceiling and unchanged exact-zero-authority controls. Tests, builds and CI observation remain 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), [Integration review](https://git.erikinkinen.fi/erix/integration/pulls/12), [Phase 6 completion](https://git.erikinkinen.fi/erix/integration/issues/65). No workaround or completed runtime acceptance is claimed.
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#10
No description provided.