Skip to content

fix(daemon): consolidate admitted output and transfer ownership - #5342

Closed
thymikee wants to merge 3 commits into
0.22from
candidate/admitted-artifact-scope
Closed

thymikee wants to merge 3 commits into
0.22from
candidate/admitted-artifact-scope

Conversation

@thymikee

@thymikee thymikee commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Closed as superseded by #5343 and #5344 on the 0.22 remediation line. Continue review and implementation there. Historical validation below remains attributed to its original commits; closure does not claim the replacements are merge-ready.

Integrated review prototype. Active successors are #5343 for ingress and #5344 for admitted output ownership. CI findings at this prototype head are being corrected in those independently mergeable roots. This prototype is not merge-ready.

Summary

Integrated replacement candidate for #5243, #5278, #5281 and #5282, based solely on 0.22 at a23c532. Canonical admission supplies explicit output scope; producers commit IDs before replies. Uploads share bounded staging capacity and existing lease/lifetime fences. RPC preauthorization owns finite slots and buffered bytes. Replay admission and the remote-browser refusal remain enforced.

The initial independent source review found four blockers. Corrections are published and delta review is pending. This integrated draft still needs extraction into mergeable roots. Recording #5335 and client #5338 remain separate; the only recording-handler edit removes the obsolete response ownership marker.

Before / after

  • A leased-session upload without its credential is refused before file transfer, including legacy fallback.
  • Trace, perf, scripts and suite/fallback outputs commit at their producers; finalization cannot register reply paths or infer ownership.
  • Stalled preauthorization returns typed 408/503 without dispatch. Request IDs register after authentication.

Value

Whole production change footprints: old combined stack +1,359 net lines; candidate +933 versus 0.22. Different bases prevent a whole-tree shrink claim. Finalization removes 137 lines and the obsolete ownership module removes 66 lines; the legitimate screenshot presentation map remains.

Validation

Checkpoint: 2581250. Development focused groups passed: 118 RPC/protocol tests and 95 producer/CLI tests. Temporary combination of this checkpoint with #5338 a049747 passed all 45 tests in its four existing HTTP/client fixture files; temporary changes were removed. Chunked-budget regression was red before the byte-admission hook and green afterward.

Hosted CI/Size are unavailable during the reported GitHub Actions outage. Broad gates, native/live verification and package-byte measurements remain pending. No merges or releases.

Review corrections

Head e6079b0 includes canonical validation of every supplied nonempty backend alias, removal of invalid HTTP route arguments, forwarding of the original lease credential, and preservation of upstream-origin redaction. RPC errors are projected once before envelope serialization.

At this head, 61 proxy tests across two files and 17 HTTP RPC validation tests passed. The three lease-forwarding cases and existing origin-redaction case failed before the corrections. No local broad gates, build, coverage or device checks ran. CI and Size remain unverified. Independent delta review is pending.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff Turn on auto-fix

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 5.28 MB 5.30 MB +12.1 kB
Package (unpacked) 5.28 MB 5.30 MB +12.1 kB
Package (download) 1.62 MB 1.62 MB +4.2 kB

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 30.7 ms 20.3 ms -10.4 ms
CLI --help 46.4 ms 44.8 ms -1.6 ms

Affected plugins

Plugin Installed (including dependencies) Unpacked Download
@agent-device/aws-device-farm 133.2 kB → 133.2 kB (0 B) 132.8 kB → 132.8 kB (0 B) 40.6 kB → 40.6 kB (+1 B)
@agent-device/browserstack 139.7 kB → 139.7 kB (0 B) 139.2 kB → 139.2 kB (0 B) 42.3 kB → 42.3 kB (0 B)
@agent-device/harmonyos 329.2 kB → 329.2 kB (0 B) 328.7 kB → 328.7 kB (0 B) 93.8 kB → 93.8 kB (0 B)
@agent-device/limrun 3.08 MB → 3.08 MB (0 B) 430.5 kB → 430.5 kB (0 B) 128.2 kB → 128.2 kB (0 B)
@agent-device/linux 298.9 kB → 298.9 kB (0 B) 298.5 kB → 298.5 kB (0 B) 84.7 kB → 84.7 kB (0 B)
@agent-device/macos 226.1 kB → 226.1 kB (0 B) 225.7 kB → 225.7 kB (0 B) 64.4 kB → 64.4 kB (0 B)
@agent-device/maestro 896.5 kB → 896.5 kB (0 B) 896.0 kB → 896.0 kB (0 B) 278.2 kB → 278.2 kB (+1 B)
@agent-device/replay 72.3 kB → 72.3 kB (0 B) 71.9 kB → 71.9 kB (0 B) 23.8 kB → 23.8 kB (-1 B)
@agent-device/revyl 187.1 kB → 187.1 kB (0 B) 186.7 kB → 186.7 kB (0 B) 60.5 kB → 60.5 kB (-3 B)
@agent-device/testmu 139.2 kB → 139.2 kB (0 B) 138.8 kB → 138.8 kB (0 B) 42.8 kB → 42.8 kB (+1 B)
@agent-device/tizen 100.8 kB → 100.8 kB (0 B) 100.4 kB → 100.4 kB (0 B) 35.3 kB → 35.3 kB (-1 B)
@agent-device/vega 262.8 kB → 262.8 kB (0 B) 262.4 kB → 262.4 kB (0 B) 73.7 kB → 73.7 kB (0 B)
@agent-device/web 94.0 kB → 94.0 kB (0 B) 93.6 kB → 93.6 kB (0 B) 30.8 kB → 30.8 kB (-2 B)
@agent-device/webos 99.6 kB → 99.6 kB (0 B) 99.2 kB → 99.2 kB (0 B) 35.0 kB → 35.0 kB (+1 B)

@thymikee thymikee closed this Dec 2, 2026
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.

1 participant