Update public source fixtures for descriptor-aware configuration framing #13

Closed
opened 2026-09-29 21:25:03 +02:00 by erikinkinen · 0 comments
Owner

Summary

Resolved: public source fixtures now encode all nine capacity words, use the current 224-byte result budget and allocate 320 bytes for one client/two authority rows. Capacity-refusal literals also use the current frame, preserving their intended assertions. The new singleton scope fixture budgets 256 plan bytes. Tests are authored and unrun.

Several public realm source fixtures still encode the configuration frame and plan capacity from before descriptor-aware admission. They therefore cannot reach the source preparation, handoff and teardown paths they are intended to cover.

Reproduction

Source-derived, unexecuted reproduction: inspect the shared directory-source fixture and its stream/resize/handoff consumers. The literal BeginRealmConfiguration request emits eight capacity words after the realm handle, omitting the ninth file-descriptor word. It selects a 216-byte result budget while the current minimum is 224. Two-authority fixtures allocate 312 plan bytes although the current 120-byte header, one 72-byte client and two 64-byte authority records require 320.

Expected and actual behavior

Expected: complete current framing and explicit counted descriptor/storage budgets allow the fixture to reach its intended source operation and refusal/cleanup assertions.

Actual by source inspection: framing or capacity admission refuses before those paths. No executed test failure, build failure or CI outcome is claimed.

Environment and identity

  • Launchd source revision: 44bc00753859a7129f5b1b0e059c8ebb6d0d0a89 with the coordinated descriptor-aware configuration ABI.
  • Image, runtime, hardware and toolchain: not exercised; test/build/CI execution is deferred by instruction.
  • Input route: host fixtures invoking the actual public realm decoder and source admission.
  • Last known working revision: before the descriptor-aware framing change; exact revision not established.

Evidence and prior checks

Native acquisition-scope preparation is implemented and published: lib-ipc ab4e18f6, vfsd acc9a53a, launchd 53ff53ca, posixd 45976b69, exsh 5308ec15, integration 42f7d97b, docs fe1cd7d7.

A distinct counted authority role connects public Launchd preparation, strict native scope transfer, VFS independent root/cwd ownership and sealed-client authority retirement. Root/cwd come from one actual held directory or live acquisition scope; preparation reopens no pathname and cannot widen its write ceiling. Every observation, acquisition and cleanup correlation is reserved before provider effects. Original source row, full generation, session and realm remain retained across lost replies, partial COPY and receiver disposal. Retirement disables new use before live children can delay disposal, while original child cleanup remains available. The generic broker mask and existing metadata/resize operations remain unchanged.

The native binding workload now prepares one read-only acquisition scope per client, with twenty authority rows and a 1684-byte plan per realm. Original provider and capability storage are explicitly budgeted. Twenty new controls are authored and unrun: four shared-wire, eleven VFS ownership/intake and five Launchd source/public-lifecycle cases. Existing Posixd authority, Exsh transcript and Integration geometry controls are extended. Provider correlation/cleanup and descriptor-aware source fixtures are resolved by implementation; no executed test failure or pass is claimed.

Full realm open/openat remains unfinished: native component dispatch, per-component/final permission mediation, raw path traversal, creation/append and Posixd descriptor serving still require implementation. Completion remains 16.91% weighted, 21/460 parents and 441/902 sub-items; this prerequisite adds no full-item acceptance. Tests, builds, lint checks, documentation generation, VM/profiler execution and CI observation remain deferred by instruction. Both full EriX guest-build generations and the Rust/LLVM guest rebuild remain unfinished.

Earlier evidence (historical; superseded where the current checkpoint above advances it):

The current shared wire defines a 96-byte configuration request, a 120-byte plan header and a minimum 224-byte result budget. Compare these with the literal fixture in runtime/realm_directory_tests.rs, 312-byte source plan allocations and the handoff start request. Two unrelated capacity-refusal literals also retain the older frame width and must include the descriptor budget to exercise their intended refusal.

Migrate the literal frames and explicit storage calculations while preserving original success, refusal, source ownership and cleanup expectations. New acquisition-scope coverage must use the current complete frame. Tests remain authored and unrun.

Tracking

Related Launchd implementation PR, realm open/openat and Phase 6 master issue.

## Summary Resolved: public source fixtures now encode all nine capacity words, use the current 224-byte result budget and allocate 320 bytes for one client/two authority rows. Capacity-refusal literals also use the current frame, preserving their intended assertions. The new singleton scope fixture budgets 256 plan bytes. Tests are authored and unrun. Several public realm source fixtures still encode the configuration frame and plan capacity from before descriptor-aware admission. They therefore cannot reach the source preparation, handoff and teardown paths they are intended to cover. ## Reproduction Source-derived, unexecuted reproduction: inspect the shared directory-source fixture and its stream/resize/handoff consumers. The literal BeginRealmConfiguration request emits eight capacity words after the realm handle, omitting the ninth file-descriptor word. It selects a 216-byte result budget while the current minimum is 224. Two-authority fixtures allocate 312 plan bytes although the current 120-byte header, one 72-byte client and two 64-byte authority records require 320. ## Expected and actual behavior Expected: complete current framing and explicit counted descriptor/storage budgets allow the fixture to reach its intended source operation and refusal/cleanup assertions. Actual by source inspection: framing or capacity admission refuses before those paths. No executed test failure, build failure or CI outcome is claimed. ## Environment and identity - Launchd source revision: `44bc00753859a7129f5b1b0e059c8ebb6d0d0a89` with the coordinated descriptor-aware configuration ABI. - Image, runtime, hardware and toolchain: not exercised; test/build/CI execution is deferred by instruction. - Input route: host fixtures invoking the actual public realm decoder and source admission. - Last known working revision: before the descriptor-aware framing change; exact revision not established. ## Evidence and prior checks Native acquisition-scope preparation is implemented and published: [lib-ipc `ab4e18f6`](https://git.erikinkinen.fi/erix/lib-ipc/commit/ab4e18f6837bde4f3d7dcb0b7b5b532633ff403b), [vfsd `acc9a53a`](https://git.erikinkinen.fi/erix/vfsd/commit/acc9a53ae3f044b1c272d1010e04d84b0cc2b3d7), [launchd `53ff53ca`](https://git.erikinkinen.fi/erix/launchd/commit/53ff53ca206f15fdba52bee013647e56dc57dbce), [posixd `45976b69`](https://git.erikinkinen.fi/erix/posixd/commit/45976b69ba032fbbc73fdf1ffbeb1a0aae893a02), [exsh `5308ec15`](https://git.erikinkinen.fi/erix/exsh/commit/5308ec152020c8d087aaac3e16a77342c4d454c3), [integration `42f7d97b`](https://git.erikinkinen.fi/erix/integration/commit/42f7d97b649294881e16614e13186c40f3e1c04d), [docs `fe1cd7d7`](https://git.erikinkinen.fi/erix/docs/commit/fe1cd7d7805499162311c084d589771293a1d813). A distinct counted authority role connects public Launchd preparation, strict native scope transfer, VFS independent root/cwd ownership and sealed-client authority retirement. Root/cwd come from one actual held directory or live acquisition scope; preparation reopens no pathname and cannot widen its write ceiling. Every observation, acquisition and cleanup correlation is reserved before provider effects. Original source row, full generation, session and realm remain retained across lost replies, partial COPY and receiver disposal. Retirement disables new use before live children can delay disposal, while original child cleanup remains available. The generic broker mask and existing metadata/resize operations remain unchanged. The native binding workload now prepares one read-only acquisition scope per client, with twenty authority rows and a 1684-byte plan per realm. Original provider and capability storage are explicitly budgeted. Twenty new controls are authored and unrun: four shared-wire, eleven VFS ownership/intake and five Launchd source/public-lifecycle cases. Existing Posixd authority, Exsh transcript and Integration geometry controls are extended. [Provider correlation/cleanup](https://git.erikinkinen.fi/erix/vfsd/issues/8) and [descriptor-aware source fixtures](https://git.erikinkinen.fi/erix/launchd/issues/13) are resolved by implementation; no executed test failure or pass is claimed. [Full realm open/openat](https://git.erikinkinen.fi/erix/posixd/issues/17) remains unfinished: native component dispatch, per-component/final permission mediation, raw path traversal, creation/append and Posixd descriptor serving still require implementation. Completion remains 16.91% weighted, 21/460 parents and 441/902 sub-items; this prerequisite adds no full-item acceptance. Tests, builds, lint checks, documentation generation, VM/profiler execution and CI observation remain deferred by instruction. Both full EriX guest-build generations and the Rust/LLVM guest rebuild remain unfinished. Earlier evidence (historical; superseded where the current checkpoint above advances it): The current shared wire defines a 96-byte configuration request, a 120-byte plan header and a minimum 224-byte result budget. Compare these with the literal fixture in `runtime/realm_directory_tests.rs`, 312-byte source plan allocations and the handoff start request. Two unrelated capacity-refusal literals also retain the older frame width and must include the descriptor budget to exercise their intended refusal. Migrate the literal frames and explicit storage calculations while preserving original success, refusal, source ownership and cleanup expectations. New acquisition-scope coverage must use the current complete frame. Tests remain authored and unrun. ## Tracking Related [Launchd implementation PR](https://git.erikinkinen.fi/erix/launchd/pulls/2), [realm open/openat](https://git.erikinkinen.fi/erix/posixd/issues/17) and [Phase 6 master issue](https://git.erikinkinen.fi/erix/integration/issues/65).
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:32 +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/launchd#13
No description provided.