Skip to content

Reuse the compiler-owned resolved configuration in source queries - #1029

Merged
trissim merged 1 commit into
mainfrom
audit/short-pipeline-compiler-20261006
Oct 6, 2026
Merged

trissim merged 1 commit into
mainfrom
audit/short-pipeline-compiler-20261006

Conversation

@trissim

@trissim trissim commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Compilation source and component queries now borrow the configuration already resolved by the compiler, its axis request, or CompilationSession. This removes repeated ObjectState reconstruction during axis filtering, sequential planning, source admission, path planning, and materialization planning. Filtered component queries use the same resolved configuration for their projection query.

Public queries without a supplied compilation configuration still resolve the current saved declaration. Full-plate discovery stays full-plate. The existing compilation owner supplies the configuration; no persistent configuration cache is added.

Closes #1028

Validation: 122 existing path/materialization/filter/compiler controls pass; nine workspace owner controls pass, including held compilation configuration versus a live source-filter edit and reinitialization. One unrelated test_artifact_managed_regular_pattern_uses_declared_owner_scope assertion (expected channel 1, actual 2/3) reproduces unchanged on the frozen baseline whose path-planner source is identical to main fc7. Three existing getter stubs were updated for the explicit compiler keyword.

Ordinary receiving passed on clean, unchanged head 4184442703a7a796e8811183489f67c80a4855b6: both original single-well cases completed warmup plus three measured repetitions, with all five science/output comparison gates reporting zero differences for every observation. The original source/pipeline identity checks and strict retained native-reference guards passed. These are ordinary timings with catalog/server startup excluded, not profiler timings or fresh native reruns.

Case v14 server compilation job Candidate server compilation job v14 OpenHCS total Candidate OpenHCS total Native total Native / candidate total
cp4_supplement_combine_objects 0.178189 s 0.065960 s 0.308909 s 0.188922 s 0.303371 s 1.606×
ExampleIlluminationCorrection_Example3 0.255736 s 0.155648 s 0.549667 s 0.442118 s 0.598308 s 1.353×

Values are medians of three measured repetitions. SERVER_COMPILATION_JOB is the complete server compilation lifecycle; the earlier 0.171/0.247 s numbers were nested compilation-progress windows and are not used here. OpenHCS total covers client compilation and execution submission/wait scopes. Total decreased by approximately 39% and 19.6% respectively against v14.

The v14 baseline is source b235; candidate 418444270 also includes intervening main changes, including #1025 and #981. This is a cross-head ordinary comparison, not an isolated same-head A/B claim. The genuine saved-input compiler replay independently established 13/11 redundant get_effective_config calls for the 3/10-step declarations, and plain baseline plans/bundle compilation took 157/221 ms with readiness excluded. The patch removes those repeated pipeline configuration queries while retaining per-step declaration resolution. Inclusive profiler times are not claimed as runtime savings; the first replay's cold StorageRegistry constructor is also excluded from compilation pricing.

Receiving evidence: /home/ts/.local/state/openhcs-maintenance/20261006/compiler-config-snapshot-receiving-v1 (terminal return code 0, source head unchanged and clean). Saved compiler evidence: /home/ts/.local/state/openhcs-maintenance/20261006/short-pipeline-compiler-pricing-v1. Main synchronization was verified through 3dbd24e96360a3f50f6d8d1f2f46adc18f7ef7ee after qualification.

@trissim
trissim marked this pull request as ready for review October 6, 2026 07:35
Copilot AI balanced review requested due to automatic review settings October 6, 2026 07:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim
trissim merged commit d8678db into main Oct 6, 2026
2 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compilation repeatedly reconstructs its already-resolved pipeline configuration

2 participants