Skip to content

ADR 0040 step 6 — Commit remote outputs at the producer #4970

Open

Description

@thymikee

Make each downloadable output carry the scope and proof of its original producer through retention.

ADR 0040

Required behavior

  • 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.

Activity

  1. added
    needs-triage
    on Nov 22, 2026
  2. apex-sentinel-staging commented on Nov 22, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: feature

    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.

  3. thymikee commented on Nov 22, 2026

    @thymikee
    MemberAuthor

    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.

  4. thymikee commented on Nov 22, 2026

    @thymikee
    MemberAuthor

    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.

  5. thymikee commented on Nov 22, 2026

    @thymikee
    MemberAuthor

    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.

  6. thymikee commented on Nov 22, 2026

    @thymikee
    MemberAuthor

    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.

  7. thymikee commented on Nov 22, 2026

    @thymikee
    MemberAuthor

    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.

  8. removed
    needs-triage
    on Nov 23, 2026
  9. thymikee commented on Nov 24, 2026

    @thymikee
    MemberAuthor

    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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions