fix(daemon): enforce the source-install request deadline

Merged
TH
9d ago
+828-28

Summary

Enforce a 570-second daemon deadline for source installs inside the existing 600-second client envelope. An earlier registered result deadline can refuse entry or abort in-flight source work. Timeout details report the effective budget. Ordinary source installs retain their lease admission behavior, and batch and replay retain their 60-second budget. For HTTP or socket requests with a registered result deadline, their timer is capped by the earlier deadline measured from transport admission.

Refs #4441. The downloader and materialization budget are covered separately in #4726.

Validation

Head 8b3511b5dd1503a3b1b7f7b8dbfa36d8795379e7.

  • 161 focused tests, formatting, lint and typecheck passed. All local exact affected checks passed, including the full unit suite.
  • The loopback HTTP/RPC tests exercise the 570-second cutoff, earlier deadline abort during execution, admission refusal, cleanup and a successful install through a provider fixture. The earlier cutoff test asserts the typed daemon_request_timeout response and the effective budget.
  • All 17 GitHub checks passed. Apex Sentinel approved 8b3511b with zero open findings. All three inline threads from 5fb8c9e are resolved.

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