[BUG] Catalog graph profiles are queried after compilation sealing #764

Open
opened 2026-11-12 01:51:21 +01:00 by erikinkinen · 1 comment
Owner

Summary

Graph-backed catalog preparation seals its compilation inputs before the graph requests its Cargo unit profile. Real host catalog source preparation then stops before it can expose its units.

Reproduction

Run test_actual_catalog_scope_closes_all_original_duties_successfully from #751 with explicitly selected Cargo and Rustc executables. The fixture creates and fetches a real local canonical catalog source, then calls graph.prepare_source(..., for_compilation=True).

Expected and actual behavior

The graph should retain its declared profile before sealing and adopt the same original profile and consumer afterward. Instead, GraphSourceNode.__init__ requests a new profile after CatalogCargoPreparation has already created CompilationInputs, which correctly refuses with native compilation has sealed further Cargo profile queries.

Environment and identity

  • Integration: 9b0f1fd91d732ffdb7dff98e764e1e01bf649488; the same query/seal ordering is present in eddbf080959990385d4d8c7d106f501c2a55c10f.
  • x86-64 Linux, explicitly selected Cargo/Rustc, real Git/Cargo host control. No VM/image acceptance is claimed.
  • The source and transport are selected before graph birth; compilation sealing must remain enforced.

Evidence and prior checks

The connected control reached real source preparation and failed with the exact error above after 21.061 seconds. Its original native owner confirmed cleanup and forest retirement without quarantine. The local Git transport prerequisite independently acquired and verified the expected real commit.

Tracking

Related: #751, #690.

  • Prepare and retain the exact graph-declared query before sealing.
  • Adopt only the same original profile and consumer after sealing.
  • Cover host/library success and node/declaration/target/profile/ABI substitution.
## Summary Graph-backed catalog preparation seals its compilation inputs before the graph requests its Cargo unit profile. Real host catalog source preparation then stops before it can expose its units. ## Reproduction Run `test_actual_catalog_scope_closes_all_original_duties_successfully` from [#751](https://git.erikinkinen.fi/erix/integration/pulls/751) with explicitly selected Cargo and Rustc executables. The fixture creates and fetches a real local canonical catalog source, then calls `graph.prepare_source(..., for_compilation=True)`. ## Expected and actual behavior The graph should retain its declared profile before sealing and adopt the same original profile and consumer afterward. Instead, `GraphSourceNode.__init__` requests a new profile after `CatalogCargoPreparation` has already created `CompilationInputs`, which correctly refuses with `native compilation has sealed further Cargo profile queries`. ## Environment and identity - Integration: `9b0f1fd91d732ffdb7dff98e764e1e01bf649488`; the same query/seal ordering is present in `eddbf080959990385d4d8c7d106f501c2a55c10f`. - x86-64 Linux, explicitly selected Cargo/Rustc, real Git/Cargo host control. No VM/image acceptance is claimed. - The source and transport are selected before graph birth; compilation sealing must remain enforced. ## Evidence and prior checks The connected control reached real source preparation and failed with the exact error above after 21.061 seconds. Its original native owner confirmed cleanup and forest retirement without quarantine. The local Git transport prerequisite independently acquired and verified the expected real commit. ## Tracking Related: [#751](https://git.erikinkinen.fi/erix/integration/pulls/751), [#690](https://git.erikinkinen.fi/erix/integration/pulls/690). - [x] Prepare and retain the exact graph-declared query before sealing. - [x] Adopt only the same original profile and consumer after sealing. - [x] Cover host/library success and node/declaration/target/profile/ABI substitution.
erikinkinen added this to the Alpha 1 milestone 2026-11-12 01:51:22 +01:00
Author
Owner

Catalog graph preparation now retains its declared Cargo profile before sealing and adopts the same original profile and compilation consumer afterward. Native ABI discovery runs before catalog preparation, preserving the prohibition on nested stage operations. Shared captures also retain each Git validation’s own interpreter and registry. Connected host, native-library and substitution controls cover these paths. The prerequisite is ready for composition into #751; complete graph and retirement acceptance remains there.

Catalog graph preparation now retains its declared Cargo profile before sealing and adopts the same original profile and compilation consumer afterward. Native ABI discovery runs before catalog preparation, preserving the prohibition on nested stage operations. Shared captures also retain each Git validation’s own interpreter and registry. Connected host, native-library and substitution controls cover these paths. The prerequisite is ready for composition into [#751](https://git.erikinkinen.fi/erix/integration/pulls/751); complete graph and retirement acceptance remains there.
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/integration#764
No description provided.