Skip to content

Publish saved image metadata once at the plate receiving boundary - #966

Merged
trissim merged 15 commits into
mainfrom
perf/completed-plate-metadata-transaction-20261006
Oct 6, 2026
Merged

trissim merged 15 commits into
mainfrom
perf/completed-plate-metadata-transaction-20261006

Conversation

@trissim

@trissim trissim commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

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

trissim added 10 commits October 5, 2026 23:14
…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.
@trissim trissim changed the title Admit source provenance once for completed metadata reconciliation Publish saved image metadata once at the plate receiving boundary Oct 6, 2026
@trissim

trissim commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@trissim
trissim marked this pull request as ready for review October 6, 2026 03:46
Copilot AI balanced review requested due to automatic review settings October 6, 2026 03:46
@trissim
trissim merged commit 03d4baf into main Oct 6, 2026
0 of 3 checks passed

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.

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.

Eliminate repeated provenance admission during completed-plate reconciliation

2 participants