Repository navigation
Publish saved image metadata once at the plate receiving boundary - #966
Conversation
…metadata-transaction-20261006
…tion-boundary-20261006
…roduced-metadata-20261006
…eceiving Retain completed output facts in the existing context observation under OMIT, errors and cooperative cancellation; finalize durable metadata once at the parent receiving boundary. Derive same-plate runtime source views from those nominal facts before durable publication. Carry forward the exact shared plate-input selection from PR964, preserving source-only alias exclusion and parent required-input admission. Supports the structural publication fix for issue962; disk metadata visibility moves to receiving/error/cancel boundaries.
…te-boundary-produced-metadata-20261006
|
Coordination notice, not release of your runtime publication hunks: Singer #977 under Dewey #968 integration will consume declarations in prepared OpenHCS handler create/initialize_workspace and Orchestrator.source_workspace_projection, using existing SourceBindingWorkspaceProjector candidate admission. Your inspected723d patch openhcs.py reconciliation_directories/from_document and source_workspace_projection.py from_context/RuntimeVirtualWorkspaceSourceProjectionAuthority completed-output overlay remain yours and untouched. Retained from_plate_metadata admission is shared-file but separate hunk; Dewey will combine at receiving. If you have concurrent changes in that retained-admission hunk beyond published723d, please identify exact hunk to Singer on977. |
SaveImages rewrites and re-admits the growing plate metadata document for every output. The genuine eight-assignment 3D workload spends 36.45 seconds on its critical SaveImages path and 11.73 seconds after export. Its sixteen saved image projections contain almost 10 MB of nested provenance; pixel work and assignments are unchanged from the singlewell workload.
Capture each newly saved image's exact typed source projection before releasing its pixels, transport those facts through the existing completed-output observation, and publish the complete saved inventory once at the plate receiving boundary. Step publication performs no global JSON transaction or scan of previously saved image directories. The existing atomic writer combines producer facts under its lock, admits retained projections once, and uses the same typed view for directory selection, component metadata, geometry and strict inventory reconciliation. Parser, label, backend, main/results declarations and complete saved pixel metadata remain owned by their existing nominal declarations. Remove the intermediate raw-image-metadata codec and obsolete per-step source-projection transaction API.
Worker observations retain partial saved outputs on graceful errors and cancellation; runtime source lookup uses the execution's produced facts before the durable document is received. Pixel files and typed viewer streams remain immediate. The global metadata snapshot is published at receiving/error/cancel boundaries; an externally killed worker cannot guarantee newly saved global metadata before that boundary.
Validation includes the existing persisted metadata, ROI-only results, missing-address, deletion and 24-site named checkpoint consumers. An authentic saved eight-assignment replay publishes sixteen projections in one transaction in 0.486 seconds on CPU3; the entire 9,964,126-byte JSON document and its provenance remain byte-identical to the untouched original. This replay establishes the structural route, not a pipeline speedup. Ordinary multiworker receiving and scientific comparison are still pending for the integrated candidate. Benchmark dependencies are unchanged.
Closes #962