Repository navigation
Project CMUX product transport receipts into adaptive verification observations - #1102
Merged
teamleaderleo merged 15 commits intoSep 22, 2026
Merged
Conversation
teamleaderleo
deleted the
issue-547-cmux-product-transport-observations
branch
September 22, 2026 23:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #547 and merged #1100. Depends on manaflow-ai/cmux#13540 landing its current
CMUX_TEST_PRODUCT_RESTOREreceipt fields.What this adds
cmux_product_transport_adapter;CmuxWorkloadVerificationObservationBatchplus CMUX's closed product-restore JSON receipt;artifact_transferobservation with measured lookup + transfer time, bytes transferred, exact physical archive identity, semantic consumer identity, backend, and inherited validity inputs;restoreobservation with measured restore time and archive bytes;Unit discipline
The semantic shard receipt reports unpacked runtime-input tree bytes. The transport receipt reports compressed archive/transport bytes. They are different units.
This adapter therefore:
split_comparable_bytes_available=false;required_consumer_bytesunset on transport observations.Repeated full-product peer transfers can rediscover
retain_local_immutable_artifactwith an exact validity contract. They cannot manufacturesplit_consumer_artifact. #13365 still needs selected/required bytes measured in the same transport unit.Proof
Tests use the real #13540 transport-control byte count and peer timings (606,055,356-byte product, 0.262123s lookup, 0.781782s peer transfer). The restore duration in the unit fixture is synthetic; this PR does not claim a controlled canonical-restore benchmark. The tests prove:
Merge after manaflow-ai/cmux#13540 so the producer receipt contract is landed.
Stage-specific reuse accounting
The shard semantic result may be
exact-product-reuse, while transport locality is a separate fact. Peerartifact_transferrows are emitted ascold. Every accepted physical receipt also emits a restore row classified by its source: local restores arereuse; peer/R2/GitHub restores arecold. The test-execution row continues to carry the CMUX compiled-product reuse class.For
retain_local_immutable_artifact, utility prefers those restore rows when computing hit frequency and falls back to transfer rows for older observation producers. This prevents repeated peer misses from being reported as local hits while allowing real local receipts to contribute measured hit frequency.Regression coverage asserts three peer transfers produce exact local-retention advice at 0 bp, and adding one matching local-hit receipt produces 2,500 bp. The same evidence still produces no
split_consumer_artifactcandidate.