Skip to content

Retained initialized plate executes all sites despite pipeline source file filter #968

Closed

Description

@trissim

Observed in P001 retained development on receiving23 (OpenHCS 0.8.7). The pipeline declares LazySourceBindingsConfig(source_filters=(SourceFilterClause(subject=FILE, match_type=CONTAINS, value="s007"),)) and well A01, intending only site 7. Original execution 87ce42df-e3a5-4662-a5ee-0b9104cc6804 completed without errors but persisted nine summary tables for sites 1–9. This is a scope mismatch, not an observation timeout or a scientific acceptance claim. All nine fields were already authorized development; no held-out access occurred.

Retained reproducer: /home/ts/wt/openhcs-issue-batch-20260929/next-p001-retained-repair23-88-20261006/P001_RETAINED_REPAIR23_88/author-workspace/output/pipelines/REPAIR01-site7.py (line 12). Original terminal receipt: evidence/openhcs_get_execution_status-latest.json. Durable outputs: /run/media/ts/hdd/openhcs-science/next-p001-retained-repair23-88-20261006/P001_RETAINED_REPAIR23_88/repair01-site7/staged-input_repair01/results. Preserve the original execution and saved history; no replay is requested.

Source inspection finds existing source_filter_declarations/source_path_filters_match ownership in SourceBindingsConfig and checks in SourceBindingWorkspaceProjector.source_candidates and projection_set_for_candidates. Trace the retained-metadata execution route and determine why it does not apply the declared universe filter. The exact bypass owner remains to be established; do not add a second filename filter in processing functions or a scientific-source loader.

Acceptance: inspect/compile the same retained initialized plate with the declared filter and verify the compiled source/group domain selects the intended site, preserving both channels and provenance. The ordinary unfiltered route must still select nine sites. Verify actual installed execution outputs for the selected domain in a separate engineering destination without changing acquisition, original result or active author package. Reuse existing source-selection/projection owners.

Coordination: already handed to Dewey, existing fleet/runtime integration owner, for claim/PR matching and implementation assignment. PR964/966 currently address worker retention and metadata performance, not this demonstrated filter scope. The scientific author continues its existing development; no package hot swap or reference feedback.

Activity

  1. trissim commented on Oct 6, 2026

    @trissim
    CollaboratorAuthor

    Implementation ownership: Dewey owns #968 through source correction and installed acceptance. Current claim check found no existing implementation PR for this source-universe mismatch. #964 owns downstream compiled-input retention/worker transport; #966 owns completed-metadata admission/performance. Neither is the source-selection fix, and I will not edit their claimed files or add a competing filename parser/filter. The current receiving23 factory retains the PREPARED_WORKSPACE handler when source bindings are declared, while the existing SourceBindingWorkspaceProjector owns filtered candidate admission. This identifies the route to trace, not yet proof of the precise bypass. Next checkpoint is a draft source correction through the existing prepared-workspace/source-binding owners, with selected/unfiltered domain controls and separate installed engineering execution. Acceptance preserves original metadata, both channels, paths and provenance, checks a selected-site domain plus unfiltered and no-match controls, and verifies outputs in a new engineering destination. Original execution 87ce42df-e3a5-4662-a5ee-0b9104cc6804, active author package and histories remain unchanged; no scientific feedback or replay. No implementation PR exists yet; I will link it here when the coherent owner correction is published.

  2. trissim commented on Oct 6, 2026

    @trissim
    CollaboratorAuthor

    Singer: please take #968 source implementation as contributor under Dewey integration ownership; retain fleet/FUND/public installed handoff with Dewey. Reuse a finished isolated checkout, no environment/download or competing parser/scanner. Before editing read latest NRA/refactor-audit and antipattern catalog; enumerate the complete AST declaration/write/decision/consumer family and read semantics. Current claims checked: #973 ea48dd9 (measurement/source dependencies); #964 6097312 (compiled inputs/runtime stores); #966 723d22c now also claims source_workspace_projection.py, virtual_workspace_metadata.py and microscopes/openhcs.py. Coordinate that shared family directly before editing; do not duplicate their authorities.

    Prepared trace: receiving23/target core/source_bindings.py SourceBindingsConfig.source_path_filters_match; core/source_binding_workspace.py SourceBindingWorkspaceProjector.source_candidates/projection_set_for_candidates already apply that matcher. Trace retained PREPARED_WORKSPACE selection through microscopes/microscope_base.py, OpenHCSMicroscopeHandler.initialize_workspace and orchestrator cached initialized group domain. Exact bypass remains to prove, not permission to add another filename filter.

    Original immutable repro: /home/ts/wt/openhcs-issue-batch-20260929/next-p001-retained-repair23-88-20261006/P001_RETAINED_REPAIR23_88/author-workspace/output/pipelines/REPAIR01-site7.py, SHA f1c69aab17792ce1cc6d3afd0bdf7386c8dc9a1e3f425cda57b0c97e9cc31cf7. Execution 87ce42df-e3a5-4662-a5ee-0b9104cc6804 compiled/executed nine groups despite FILE CONTAINS s007. Retained native log output/runtime/data/openhcs/logs/openhcs_zmq_server_port_6020_1791254678947185988.log lines 71,146-173,209,595. Read-only evidence; no author hints or replay.

    Publish draft early after owner decision. Acceptance: retained initialized three-site/two-channel fixture selected domain one site/two channels; unfiltered three sites; no-match honest empty/error, never widening; original paths/metadata unchanged; fresh declared-source control. Then actual installed compile/execute acceptance in separate engineering destination through existing owner. Report parser omissions/dynamic ambiguity. Preserve original science and coordinate shared file claims before implementation.

  3. trissim commented on Oct 6, 2026

    @trissim
    CollaboratorAuthor

    Singer source contribution released now: SourceBindingWorkspaceProjector.projection_set_for_candidates (core/source_binding_workspace.py ~651-684), source_candidates (~886-910), and prepared-workspace factory selection in microscopes/microscope_base.py MicroscopeSourceSelectionRole (~67-91) / create_microscope_handler (~899-989), plus source_bindings.py existing matcher only if semantic trace demonstrates necessary owner change. Dewey has no in-progress edits in those hunks. Reuse your finished UI checkout; do not borrow/edit Dewey runtime checkout.

    Dewey current source branch fix/707-settlement-custody-20261005 at 14bb31d, checkout /home/ts/wt/openhcs-custom-function-admission-20260929. This is #910 integration source, not a request to base #968 on it; leave runtime files untouched and use current reviewed main in your own reused checkout.

    Crossings freshly checked: #966 723d22c claims core/source_workspace_projection.py, virtual_workspace_metadata.py, microscopes/openhcs.py and compiled execution/runtime publication. These are NOT released by Dewey: coordinate necessary shared OpenHCS initialization hunks with its owner. #964 6097312 owns compiled_plate_execution/execution_result/runtime_stores; avoid those transport changes. #973 ea48dd9 owns function_patterns/runtime_adapters/CP declarations+adapter pixel dependency; do not change measurement delivery. Existing source_path_filters_match remains filter authority; no new matcher/parser or duplicate prepared inventory. Exact bypass still requires your semantic/AST proof. Draft scoped contributor PR promptly, selected/unfiltered/no-match two-channel controls then Dewey installed receiving integration. This records assignment, not a claim that acceptance or implementation is already complete.

  4. added a commit that references this issue on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions