Skip to content

Limrun network capture: serve tunnel traffic through network dump and a downloadable HAR artifact #4064

Open

Description

@thymikee

Purpose

Limrun's --provider-network-logs capture keeps completed requests in memory. Since #4080, artifacts and close write them to <state-dir>/network-har/<lease-id>.har on the daemon host. The CloudArtifact.url is that absolute daemon-host path. Remote and proxy clients can't download it, and network dump on a capture-enabled Limrun session never sees tunnel traffic.

Required behavior

  • While a capture is live, Limrun's networkDump operation returns the capture's in-memory entries, mapped from DestinationTunnelHAREntry to the NetworkDumpResult shape. network dump --include headers|body then applies the daemon's payload caps and redactNetworkLogText.
  • The HAR that artifacts and close write is registered with trackDownloadableArtifact, so remote and proxy clients can download it and the tracker's expiry owns retention.

Completion conditions

  • agent-device network dump --include headers on a Limrun session with --provider-network-logs lists tunnel requests, with redaction applied.
  • agent-device artifacts on a remote or proxy client lists a downloadable HAR, and the download yields a valid HAR 1.2 document.
  • metadata.failures (count, last typed kind, last dial failure) is still reported.

Dependencies

Blocked by: #4080.

Activity

  1. thymikee commented on Oct 29, 2026

    @thymikee
    MemberAuthor

    Updated for #4080. The live file, the rewrite loop and retention are gone there, so only remote delivery (trackDownloadableArtifact) and network dump remain in scope.

  2. thymikee commented on Nov 22, 2026

    @thymikee
    MemberAuthor

    ADR 0040 alignment (ADR)

    Decision: Limrun HAR: Keep the live network dump mapping inside the admitted runtime operation with the existing caps and redaction. For downloadable HARs, reserve a daemon-owned destination at the producer, commit it with the originating lease proof and return the committed ID from artifacts or close. Reuse the same reservation for teardown or verified recovery. Use #4970 for the output port and #4950 if the lookup crosses into retained provider artifacts. Preserve the typed provider failure metadata.

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

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions