You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ADR 0040 step 6 — Commit remote outputs at the producer #4970
Reserve a daemon destination before remote production. Commit an output ID and immutable producer proof when bytes or a provider reference are ready. Pass only committed outputs to finalization.
Convert screenshot, recording, trace, perf, script, and diagnostics families in small PRs. Preserve suite artifact delivery. Delete inferred ownership and response-time path registration for each converted family.
Keep client-local --out, script revision delivery, and host paths on the trusted local lane. Reject remote republication from owner-unknown legacy records.
For peer-echoed paths and placeholder retirement, validate the ADR window in both directions. Record ADR 0006 ledger acknowledgments for compatible declaration changes.
Verification
Exercise repeated destinations, file replacement, retention, teardown, restart, and valid, absent, and different same-tenant credentials before and after close. Verify mixed-version placement for trace and perf start and stop.
Related work
Keep provider lookup after close until the receipt flow in #4950 can supply producer proof. Keep the #4945 artifact regressions.
Use the lifetime and journal ports from step 1 and step 2.
The issue defines a concrete implementation task for ADR 0040 step 6: commit remote outputs at the producer with producer proof, conversion plan, verification, and dependencies. It is a specification for new/enhanced behavior rather than a reported defect.
When this step lands, amend the ADR that ADR 0040 (#4964) lists for it in its Amendments table, in the same PR. ADR 0040 does not edit those ADRs up front, because an ADR states the current truth and the code has not changed yet.
Output-ownership findings that come up after #4945 merges belong here. #4945 stopped at its current scope by maintainer decision, so later per-producer edge cases (screenshot, recording, trace, perf, script and diagnostics owners or paths) are fixed here by OutputRegistry reserve/commit, not by more rounds on #4945.
Compatibility constraint from #4945: it creates on-disk formats that outlive it, namely the diagnostics record ID format (a daemon-chosen ID that carries the owner verifier or an explicit unleased marker) and the owner field in recording manifests (lease verifier or explicit unleased). OutputRegistry must keep reading both, or migrate them, so that records and recordings made by releases between #4945 and this step stay valid and keep their owner.
Decision: output cutover: List #4945/#4912 as the security baseline and #4965/#4966 as the lifetime and journal interfaces. Keep the Step 1 script commit and Step 2 bound journal. Split producer conversions by family and delete each family's response-time registration when committed IDs replace it. Add #4518 trace/perf cross-command client placement, the #4724 recording invariant, and #4064 as a later producer. Keep the bounded provider lookup until #4950's receipt lands. Pin old-client/new-daemon and new-client/old-daemon 0.22.x combinations before removing placeholder/echo paths. Apply the ADR 0006 acknowledgment or protocol-increment rule to each declaration change.
Case for this step, found in the #4983 live check on Android 16 at 5eb2f4c: a replay attempt timed out during recording, and the Android recorder stop returned UNKNOWN. The video was then exported during cleanup, after the suite result had been built, so the suite JSON omitted the recording.mp4 path even though the file was present before the suite returned. With producer-committed outputs, the suite result must serialize the committed recording ID. An export that settles inside the tail or cleanup window must still appear in the result. Add this as a regression case.
Decision: producer rollout: Make audience and failed-delivery behavior explicit before expanding producer conversion. Reuse one publication decision across the existing producer adapters.
Activity
apex-sentinel-staging commentedon Nov 22, 2026
Apex Sentinel · Issue review
Suggested label:
featureThe issue defines a concrete implementation task for ADR 0040 step 6: commit remote outputs at the producer with producer proof, conversion plan, verification, and dependencies. It is a specification for new/enhanced behavior rather than a reported defect.
thymikee commentedon Nov 22, 2026
When this step lands, amend the ADR that ADR 0040 (#4964) lists for it in its Amendments table, in the same PR. ADR 0040 does not edit those ADRs up front, because an ADR states the current truth and the code has not changed yet.
thymikee commentedon Nov 22, 2026
Output-ownership findings that come up after #4945 merges belong here. #4945 stopped at its current scope by maintainer decision, so later per-producer edge cases (screenshot, recording, trace, perf, script and diagnostics owners or paths) are fixed here by
OutputRegistryreserve/commit, not by more rounds on #4945.thymikee commentedon Nov 22, 2026
Compatibility constraint from #4945: it creates on-disk formats that outlive it, namely the diagnostics record ID format (a daemon-chosen ID that carries the owner verifier or an explicit unleased marker) and the owner field in recording manifests (lease verifier or explicit unleased).
OutputRegistrymust keep reading both, or migrate them, so that records and recordings made by releases between #4945 and this step stay valid and keep their owner.thymikee commentedon Nov 22, 2026
ADR 0040 alignment (ADR)
Decision: output cutover: List #4945/#4912 as the security baseline and #4965/#4966 as the lifetime and journal interfaces. Keep the Step 1 script commit and Step 2 bound journal. Split producer conversions by family and delete each family's response-time registration when committed IDs replace it. Add #4518 trace/perf cross-command client placement, the #4724 recording invariant, and #4064 as a later producer. Keep the bounded provider lookup until #4950's receipt lands. Pin old-client/new-daemon and new-client/old-daemon 0.22.x combinations before removing placeholder/echo paths. Apply the ADR 0006 acknowledgment or protocol-increment rule to each declaration change.
thymikee commentedon Nov 22, 2026
Case for this step, found in the #4983 live check on Android 16 at
5eb2f4c: a replay attempt timed out during recording, and the Android recorder stop returnedUNKNOWN. The video was then exported during cleanup, after the suite result had been built, so the suite JSON omitted therecording.mp4path even though the file was present before the suite returned. With producer-committed outputs, the suite result must serialize the committed recording ID. An export that settles inside the tail or cleanup window must still appear in the result. Add this as a regression case.thymikee commentedon Nov 24, 2026
Decision: producer rollout: Make audience and failed-delivery behavior explicit before expanding producer conversion. Reuse one publication decision across the existing producer adapters.
Keep #4518 client-owned placement and #4950 provider post-close behavior as separate contracts.