[BUG] Update resolver fixture assertions for digest-selected Loaderd requests #16

Closed
opened 2026-10-01 20:44:20 +02:00 by erikinkinen · 0 comments
Owner

Summary

The scoped executable fixture accesses path_bytes and path_len on LoaderPrepareExecutableRequestV2, whose fields now carry command_entry_digest instead. This leaves the unit-test source incompatible with the migrated interfaces.

Reproduction

Inspect src/tests/resolver.rs at d4fa321553b000738bce65bed026b1041a4c4649 and compare the request type with its field definition. This is a source-confirmed defect; no compiler, test or CI run was executed. Execution remains deferred by request.

Expected and actual behavior

Assert the original authenticated command-entry digest and keep the independent executable object evidence assertion. Actual source still references the retired representation. No exit status or runtime failure is claimed.

Environment and identity

  • Component repository/revision: launchd at d4fa321553b000738bce65bed026b1041a4c4649, feature/posix-compat.
  • Image profile and runtime graph: not involved in this source observation.
  • Hardware, firmware and toolchain: not exercised.
  • Input/session authority: test fixtures only; no production authority change is implied.
  • Last known working revision: not established.

Evidence and prior checks

Original fixture source demonstrates the mismatch. The fix will migrate assertions and construction while retaining the existing authority-negative controls. Tests will be authored or adjusted without execution; no pass is claimed.

Tracking

Related design #1 and implementation PR #2.

Resolution

The Loaderd assertion now compares the authenticated command-entry digest and retains original object-evidence checks. Source-fixed in signed commit 3fa44b0c. Testing is waived by request; no compiler, runtime or CI pass is claimed.

## Summary The scoped executable fixture accesses path_bytes and path_len on LoaderPrepareExecutableRequestV2, whose fields now carry command_entry_digest instead. This leaves the unit-test source incompatible with the migrated interfaces. ## Reproduction Inspect `src/tests/resolver.rs` at `d4fa321553b000738bce65bed026b1041a4c4649` and compare the request type with its field definition. This is a source-confirmed defect; no compiler, test or CI run was executed. Execution remains deferred by request. ## Expected and actual behavior Assert the original authenticated command-entry digest and keep the independent executable object evidence assertion. Actual source still references the retired representation. No exit status or runtime failure is claimed. ## Environment and identity - Component repository/revision: `launchd` at `d4fa321553b000738bce65bed026b1041a4c4649`, feature/posix-compat. - Image profile and runtime graph: not involved in this source observation. - Hardware, firmware and toolchain: not exercised. - Input/session authority: test fixtures only; no production authority change is implied. - Last known working revision: not established. ## Evidence and prior checks [Original fixture source](https://git.erikinkinen.fi/erix/launchd/src/commit/d4fa321553b000738bce65bed026b1041a4c4649/src/tests/resolver.rs) demonstrates the mismatch. The fix will migrate assertions and construction while retaining the existing authority-negative controls. Tests will be authored or adjusted without execution; no pass is claimed. ## Tracking Related design [#1](https://git.erikinkinen.fi/erix/launchd/issues/1) and implementation [PR #2](https://git.erikinkinen.fi/erix/launchd/pulls/2). ## Resolution The Loaderd assertion now compares the authenticated command-entry digest and retains original object-evidence checks. Source-fixed in [signed commit `3fa44b0c`](https://git.erikinkinen.fi/erix/launchd/commit/3fa44b0cead545abe0ad35c55b4fbd7740978ecc). Testing is waived by request; no compiler, runtime or CI pass is claimed.
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#16
No description provided.